projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb4917
)
CIFS: Do not count -ENODATA as failure for query directory
author
Pavel Shilovsky
<pshilov@microsoft.com>
Sat, 26 Jan 2019 20:21:32 +0000
(12:21 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 16:30:11 +0000
(17:30 +0100)
commit
8e6e72aeceaaed5aeeb1cb43d3085de7ceb14f79
upstream.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c
patch
|
blob
|
history
diff --git
a/fs/cifs/smb2pdu.c
b/fs/cifs/smb2pdu.c
index
dba9865
..
ff13f83
100644
(file)
--- a/
fs/cifs/smb2pdu.c
+++ b/
fs/cifs/smb2pdu.c
@@
-3714,8
+3714,8
@@
SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
rsp->sync_hdr.Status == STATUS_NO_MORE_FILES) {
srch_inf->endOfSearch = true;
rc = 0;
- }
- cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
+ }
else
+
cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
goto qdir_exit;
}