cifs: CIFSSMBPosixLock should return -EINVAL on error
PATCH 1/1 cifs: CIFSSMBPosixLock should return -EINVAL on error
all other codepaths in this function return negative values on errors
Signed-off-by Marcin Slusarz <[email protected]>
Cc Steve French <[email protected]>
---
compile tested only
--- fs/cifs/cifssmb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/cifssmb.c +1 -1
@@ -1771,7 +1771,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);