mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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: Martin Stava <martin.stava@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
b6727b12dd
commit
f91b90993f
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue