summaryrefslogtreecommitdiff
path: root/fs/smb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-01-31 10:10:18 +0300
committerSteve French <stfrench@microsoft.com>2024-03-10 19:33:58 -0500
commite0e1e09b2c41d383a2483f2ee5227b724860ced1 (patch)
tree62b3698dda9d4218014baeabd817ce3d1a10a852 /fs/smb
parent5a4b09ecf8e8ad26ea03a37e52e310fe13f15b49 (diff)
smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()
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@manguebit.com> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/client/reparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c
index b240ccc9c887..24feeaa32280 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;