Fixed returning SoE error code.

This commit is contained in:
Florian Pose 2010-03-05 16:15:49 +01:00
parent e875955873
commit 3fda13418c
1 changed files with 1 additions and 0 deletions

View File

@ -3416,6 +3416,7 @@ int ec_cdev_ioctl_slave_soe_write(
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))) {