diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-22 11:55:14 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-24 21:45:03 +0200 |
commit | 8e3c500594dca9a12c27eb6d77b82e0766879bfd (patch) | |
tree | 1bb64839f3aa1ccff5e694a405cb9e2d4a344ba7 /fs/utimes.c | |
parent | VFS: assorted d_backing_inode() annotations (diff) | |
download | linux-8e3c500594dca9a12c27eb6d77b82e0766879bfd.tar.xz linux-8e3c500594dca9a12c27eb6d77b82e0766879bfd.zip |
fs/9p: fix readdir()
Al Viro's IOV changes broke 9p readdir() because the new code
didn't abort the read when it returned nothing. The original
code checked if the combined error/length was <= 0 but in the
new code that accidentally got changed to just an error check.
Add back the return from the function when nothing is read.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Fixes: e1200fe68f20 ("9p: switch p9_client_read() to passing struct iov_iter *")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions