Skip to content

Commit b93ac66

Browse files
Dan Carpentergregkh
authored andcommitted
smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()
[ Upstream commit e0e1e09 ] 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 <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent df0a8a1 commit b93ac66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/reparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static int wsl_set_xattrs(struct inode *inode, umode_t _mode,
230230
}
231231

232232
cc = ea_create_context(dlen, &cc_len);
233-
if (!cc)
233+
if (IS_ERR(cc))
234234
return PTR_ERR(cc);
235235

236236
ea = &cc->ea;

0 commit comments

Comments
 (0)