Explorar el Código

[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>
Marcin Slusarz hace 17 años
padre
commit
ed5f037005
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      fs/cifs/cifssmb.c

+ 1 - 1
fs/cifs/cifssmb.c

@@ -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);