summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2025-07-02 23:46:20 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-09 13:11:17 +0200
commitaa07b790d79226f9bd0731d2c065db2823867cc5 (patch)
tree2b3158a1cc8d3ac34ad7c62956cf34c2455426ca /scripts/gdb/linux/utils.py
parent3e92c919553c97ba77e84830417cbc62df5883c2 (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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions