Revision 8e3c500594dca9a12c27eb6d77b82e0766879bfd authored by Johannes Berg on 22 April 2015, 09:55:14 UTC, committed by Al Viro on 24 April 2015, 19:45:03 UTC
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>
1 parent bb66873
History
File Mode Size
i386
x86_64
00-INDEX -rw-r--r-- 643 bytes
boot.txt -rw-r--r-- 38.5 KB
early-microcode.txt -rw-r--r-- 1.7 KB
earlyprintk.txt -rw-r--r-- 5.7 KB
entry_64.txt -rw-r--r-- 4.1 KB
exception-tables.txt -rw-r--r-- 11.7 KB
intel_mpx.txt -rw-r--r-- 10.9 KB
mtrr.txt -rw-r--r-- 10.2 KB
pat.txt -rw-r--r-- 7.6 KB
tlb.txt -rw-r--r-- 3.6 KB
usb-legacy-support.txt -rw-r--r-- 1.8 KB
zero-page.txt -rw-r--r-- 1.7 KB

back to top