[CIFS] CIFSSMBPosixLock should return -EINVAL on error
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 13 May 2008 04:01:01 +0000 (04:01 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 13 May 2008 04:01:01 +0000 (04:01 +0000)
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>
fs/cifs/cifssmb.c

index 641cc8f..1cbe615 100644 (file)
@@ -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);