Skip to contentSkip to conversation

cifs: CIFSSMBPosixLock should return -EINVAL on error

PATCH New Marcin Slusarz 1 participant 1 message May 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: CIFSSMBPosixLock should return -EINVAL on error

all other codepaths in this function return negative values on errors

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