[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:
Родитель
6353450a2d
Коммит
ed5f037005
|
@ -1767,7 +1767,7 @@ CIFSSMBPosixLock(const int xid, struct cifsTconInfo *tcon,
|
||||||
cFYI(1, ("Posix Lock"));
|
cFYI(1, ("Posix Lock"));
|
||||||
|
|
||||||
if (pLockData == NULL)
|
if (pLockData == NULL)
|
||||||
return EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
|
rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче