aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorPiro Yang <[email protected]>2023-12-20 01:04:47 +0800
committerGreg Kroah-Hartman <[email protected]>2023-12-23 14:08:38 +0100
commit5090a4bc2a2f04b7693b49500ad1287e8d0fb6c3 (patch)
tree0d17a3b77a18175499116b3a86ae5b6482200a0b /lib/test_fortify/write_overflow-strncpy-src.c
parent7f2c9c0bb8d575ed289943ad782776649343ee7e (diff)
staging: vme_user: Fix the issue of return the wrong error code
Fix the issue of returning the -ENOSYS error code when an error occurs. The error code of -ENOSYS indicates Invalid system call number, but there is not system call error. So replace -ENOSYS error code by the return -EINVAL error code. Signed-off-by: Piro Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions