Commit ed5f0370 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Steve French

[CIFS] CIFSSMBPosixLock should return -EINVAL on error

all other codepaths in this function return negative values on errors
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 6353450a
......@@ -1767,7 +1767,7 @@ CIFSSMBPosixLock(const int xid, struct cifsTconInfo *tcon,
cFYI(1, ("Posix Lock"));
if (pLockData == NULL)
return EINVAL;
return -EINVAL;
rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment