Patch "staging: vme_user: Fix the issue of return the wrong error code" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    staging: vme_user: Fix the issue of return the wrong error code

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-vme_user-fix-the-issue-of-return-the-wrong-e.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6be17eb51bd320c5d1b2020ca5b0816252936d30
Author: Piro Yang <piroyangg@xxxxxxxxx>
Date:   Wed Dec 20 01:04:47 2023 +0800

    staging: vme_user: Fix the issue of return the wrong error code
    
    [ Upstream commit 5090a4bc2a2f04b7693b49500ad1287e8d0fb6c3 ]
    
    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@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20231219170447.51237-1-piroyangg@xxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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) &&




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux