projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'v3.10.107' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
fs
/
cifs
/
smb2file.c
diff --git
a/fs/cifs/smb2file.c
b/fs/cifs/smb2file.c
index d801f63cddd03d707ac2bf20c97fd61c40ee4043..866caf1d2bea154f7f4e6365d6ea645f121dcaee 100644
(file)
--- a/
fs/cifs/smb2file.c
+++ b/
fs/cifs/smb2file.c
@@
-266,7
+266,7
@@
smb2_push_mandatory_locks(struct cifsFileInfo *cfile)
* and check it for zero before using.
*/
max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf;
- if (
!max_buf
) {
+ if (
max_buf < sizeof(struct smb2_lock_element)
) {
free_xid(xid);
return -EINVAL;
}