Skip to content

Commit

Permalink
[CIFS] CIFSSMBPosixLock should return -EINVAL on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcin Slusarz authored and Steve French committed May 13, 2008
1 parent 6353450 commit ed5f037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ed5f037

Please sign in to comment.