projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6353450
)
[CIFS] CIFSSMBPosixLock should return -EINVAL on error
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Tue, 13 May 2008 04:01:01 +0000
(
04:01
+0000)
committer
Steve French
<sfrench@us.ibm.com>
Tue, 13 May 2008 04:01:01 +0000
(
04:01
+0000)
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>
fs/cifs/cifssmb.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/cifssmb.c
b/fs/cifs/cifssmb.c
index 641cc8ffc51b6b1ee7ad02c9c66c322205ba7c3f..1cbe61524efcb8c646ddb6a7a88c578debacc2e9 100644
(file)
--- 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);