Fixed returning SoE error code.
authorFlorian Pose <fp@igh-essen.com>
Fri, 05 Mar 2010 16:15:49 +0100
changeset 1839 7f36c38e2518
parent 1838 1fca55f14b06
child 1840 06fcb795525b
Fixed returning SoE error code.
master/cdev.c
--- a/master/cdev.c	Fri Mar 05 16:15:22 2010 +0100
+++ b/master/cdev.c	Fri Mar 05 16:15:49 2010 +0100
@@ -3416,6 +3416,7 @@
     wait_event(request.slave->soe_queue,
             request.req.state != EC_INT_REQUEST_BUSY);
 
+    ioctl.error_code = request.req.error_code;
     retval = request.req.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO;
 
     if (__copy_to_user((void __user *) arg, &ioctl, sizeof(ioctl))) {