mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04: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 <[email protected]> Acked-by: Bradley Grove <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
ba9e5874b2
commit
68b14b8f94
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue