diff options
author | Marcin Slusarz | 2008-05-13 06:01:01 +0200 |
---|---|---|
committer | Steve French | 2008-05-13 06:01:01 +0200 |
commit | ed5f037005d728de19a0f63678ac35b42064966d (patch) | |
tree | 3368d40cc7afbdc48f075e20b3cbcbba273b5ef0 /fs/cifs | |
parent | fix memory leak in CIFSFindNext (diff) | |
download | kernel-qcow2-linux-ed5f037005d728de19a0f63678ac35b42064966d.tar.gz kernel-qcow2-linux-ed5f037005d728de19a0f63678ac35b42064966d.tar.xz kernel-qcow2-linux-ed5f037005d728de19a0f63678ac35b42064966d.zip |
[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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 641cc8ffc51b..1cbe61524efc 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); |