forked from Minki/linux
[CIFS] CIFSSMBPosixLock should return -EINVAL on error
all other codepaths in this function return negative values on errors Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
6353450a2d
commit
ed5f037005
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user