staging: vme_user: Fix the issue of return the wrong error code
authorPiro Yang <piroyangg@gmail.com>
Tue, 19 Dec 2023 17:04:47 +0000 (01:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 13:08:38 +0000 (14:08 +0100)
commit5090a4bc2a2f04b7693b49500ad1287e8d0fb6c3
tree0d17a3b77a18175499116b3a86ae5b6482200a0b
parent7f2c9c0bb8d575ed289943ad782776649343ee7e
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 <piroyangg@gmail.com>
Link: https://lore.kernel.org/r/20231219170447.51237-1-piroyangg@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme.c