[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 641cc8ffc51b6b1ee7ad02c9c66c322205ba7c3f..1cbe61524efcb8c646ddb6a7a88c578debacc2e9 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);