Skip to content
Snippets Groups Projects
Commit f91b9099 authored by Martin Stava's avatar Martin Stava Committed by Eric Van Hensbergen
Browse files

9p: fix a small bug in readdir for long directories


Here is a proposed patch for bug in readdir. Listing of dirs with
many files fails without this patch.

Signed-off-by: default avatarMartin Stava <martin.stava@gmail.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent b6727b12
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (err <= 0)
break;
i = 0;
n = err;
while (i < n) {
err = p9stat_read(statbuf + i, buflen-i, &st,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment