summaryrefslogtreecommitdiff
path: root/drivers/staging/vme_user
diff options
context:
space:
mode:
authorPiro Yang <piroyangg@gmail.com>2023-12-20 01:04:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-23 14:08:38 +0100
commit5090a4bc2a2f04b7693b49500ad1287e8d0fb6c3 (patch)
tree0d17a3b77a18175499116b3a86ae5b6482200a0b /drivers/staging/vme_user
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 <piroyangg@gmail.com> Link: https://lore.kernel.org/r/20231219170447.51237-1-piroyangg@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vme_user')
-rw-r--r--drivers/staging/vme_user/vme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c
index 5c416c31ec57..9bc2d35405af 100644
--- a/drivers/staging/vme_user/vme.c
+++ b/drivers/staging/vme_user/vme.c
@@ -341,7 +341,7 @@ int vme_slave_set(struct vme_resource *resource, int enabled,
if (!bridge->slave_set) {
dev_err(bridge->parent, "Function not supported\n");
- return -ENOSYS;
+ return -EINVAL;
}
if (!(((image->address_attr & aspace) == aspace) &&