esas2r: fix an oversight in setting return value

The patch moves an error code assigment to a 'default' case
in the previous switch statement.

Signed-off-by: Tomas Henzl <[email protected]>
Acked-by: Bradley Grove <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
Tomas Henzl 2014-11-16 14:35:34 +01:00 • committed by Christoph Hellwig
commit 68b14b8f94

View file

@ -1524,9 +1524,12 @@ ioctl_done:
case -EINVAL:
ioctl->header.return_code = IOCTL_INVALID_PARAM;
break;
default:
ioctl->header.return_code = IOCTL_GENERAL_ERROR;
break;
}
ioctl->header.return_code = IOCTL_GENERAL_ERROR;
}
/* Always copy the buffer back, if only to pick up the status */