Commit e0e1e09b authored by Dan Carpenter's avatar Dan Carpenter Committed by Steve French
Browse files

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: default avatarPaulo Alcantara <pc@manguebit.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 5a4b09ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;