Commit 68b14b8f authored by Tomas Henzl's avatar Tomas Henzl Committed by Christoph Hellwig

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: default avatarTomas Henzl <thenzl@redhat.com>
Acked-by: default avatarBradley Grove <bgrove@attotech.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent ba9e5874
...@@ -1524,9 +1524,12 @@ int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg) ...@@ -1524,9 +1524,12 @@ int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg)
case -EINVAL: case -EINVAL:
ioctl->header.return_code = IOCTL_INVALID_PARAM; ioctl->header.return_code = IOCTL_INVALID_PARAM;
break; 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 */ /* Always copy the buffer back, if only to pick up the status */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment