diff options
author | Tomas Henzl <thenzl@redhat.com> | 2014-11-16 08:35:34 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-25 09:42:52 -0500 |
commit | 68b14b8f9482b6c42cec71e06613f5684e89d275 (patch) | |
tree | 5aa7c5f3db01c042acf231a9b48fa4c6c297ae32 | |
parent | ba9e5874b2f4a191cdd9de8a7ea96344458c1ab7 (diff) |
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 <thenzl@redhat.com>
Acked-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/esas2r/esas2r_ioctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c b/drivers/scsi/esas2r/esas2r_ioctl.c index c88b9f9491b5..baf913047b48 100644 --- a/drivers/scsi/esas2r/esas2r_ioctl.c +++ b/drivers/scsi/esas2r/esas2r_ioctl.c | |||
@@ -1524,9 +1524,12 @@ ioctl_done: | |||
1524 | case -EINVAL: | 1524 | case -EINVAL: |
1525 | ioctl->header.return_code = IOCTL_INVALID_PARAM; | 1525 | ioctl->header.return_code = IOCTL_INVALID_PARAM; |
1526 | break; | 1526 | break; |
1527 | |||
1528 | default: | ||
1529 | ioctl->header.return_code = IOCTL_GENERAL_ERROR; | ||
1530 | break; | ||
1527 | } | 1531 | } |
1528 | 1532 | ||
1529 | ioctl->header.return_code = IOCTL_GENERAL_ERROR; | ||
1530 | } | 1533 | } |
1531 | 1534 | ||
1532 | /* Always copy the buffer back, if only to pick up the status */ | 1535 | /* Always copy the buffer back, if only to pick up the status */ |