From: Marcin Slusarz Date: Tue, 13 May 2008 04:01:01 +0000 (+0000) Subject: [CIFS] CIFSSMBPosixLock should return -EINVAL on error X-Git-Tag: v3.12-rc1~20614^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed5f037005d728de19a0f63678ac35b42064966d;p=kernel%2Fkernel-generic.git [CIFS] CIFSSMBPosixLock should return -EINVAL on error all other codepaths in this function return negative values on errors Signed-off-by: Marcin Slusarz Signed-off-by: Steve French --- diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 641cc8f..1cbe615 100644 --- a/fs/cifs/cifssmb.c +++ b/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);