Skip to content
Commit 8e3c5005 authored by Johannes Berg's avatar Johannes Berg Committed by Al Viro
Browse files

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: e1200fe6

 ("9p: switch p9_client_read() to passing struct iov_iter *")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bb668734
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment