mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-04 14:10:46 +00:00
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>
This commit is contained in:
parent
ba9e5874b2
commit
68b14b8f94
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user