diff options
| author | 2025-07-02 23:46:20 -0700 | |
|---|---|---|
| committer | 2025-07-09 13:11:17 +0200 | |
| commit | aa07b790d79226f9bd0731d2c065db2823867cc5 (patch) | |
| tree | 2b3158a1cc8d3ac34ad7c62956cf34c2455426ca /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | staging: fbtft: cleanup error handling in fbtft_framebuffer_alloc() (diff) | |
staging: gpib: Fix error code in board_type_ioctl()
When copy_from_user() fails it return number of bytes it wasn't able to
copy. So the correct return value when copy_from_user() fails is
-EFAULT.
Fixes: 9dde4559e939 ("staging: gpib: Add GPIB common core driver")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20250703064633.1955893-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
