Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6961288 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Greg Kroah-Hartman
Browse files

CIFS: Do not count -ENODATA as failure for query directory



commit 8e6e72aeceaaed5aeeb1cb43d3085de7ceb14f79 upstream.

Signed-off-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbb49172
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3714,7 +3714,7 @@ 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;
		}
		} else
			cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
		goto qdir_exit;
	}