Patch "smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()" has been added to the 6.6-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

    smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()

to the 6.6-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:
     smb-client-fix-a-null-vs-is_err-check-in-wsl_set_xat.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 13d034c20cb52315348b157d7f710316c3602cf7
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Wed Jan 31 10:10:18 2024 +0300

    smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()
    
    [ Upstream commit e0e1e09b2c41d383a2483f2ee5227b724860ced1 ]
    
    This was intended to be an IS_ERR() check.  The ea_create_context()
    function doesn't return NULL.
    
    Fixes: 1eab17fe485c ("smb: client: add support for WSL reparse points")
    Reviewed-by: Paulo Alcantara <pc@xxxxxxxxxxxxx>
    Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c
index b240ccc9c887c..24feeaa32280e 100644
--- a/fs/smb/client/reparse.c
+++ b/fs/smb/client/reparse.c
@@ -230,7 +230,7 @@ static int wsl_set_xattrs(struct inode *inode, umode_t _mode,
 	}
 
 	cc = ea_create_context(dlen, &cc_len);
-	if (!cc)
+	if (IS_ERR(cc))
 		return PTR_ERR(cc);
 
 	ea = &cc->ea;




[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