Skip to content

Commit 5090a4b

Browse files
Piro Yanggregkh
authored andcommitted
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>
1 parent 7f2c9c0 commit 5090a4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/staging/vme_user

drivers/staging/vme_user/vme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ int vme_slave_set(struct vme_resource *resource, int enabled,
341341

342342
if (!bridge->slave_set) {
343343
dev_err(bridge->parent, "Function not supported\n");
344-
return -ENOSYS;
344+
return -EINVAL;
345345
}
346346

347347
if (!(((image->address_attr & aspace) == aspace) &&

0 commit comments

Comments
 (0)