mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
CIFS: Do not count -ENODATA as failure for query directory
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> CC: Stable <stable@vger.kernel.org>
This commit is contained in:
parent
7d42e72fe8
commit
8e6e72aece
1 changed files with 2 additions and 2 deletions
|
@ -3845,8 +3845,8 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
|
||||||
rsp->sync_hdr.Status == STATUS_NO_MORE_FILES) {
|
rsp->sync_hdr.Status == STATUS_NO_MORE_FILES) {
|
||||||
srch_inf->endOfSearch = true;
|
srch_inf->endOfSearch = true;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
}
|
} else
|
||||||
cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
|
cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
|
||||||
goto qdir_exit;
|
goto qdir_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue