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
media
.gitignore -rw-r--r-- 116 bytes
80211.tmpl -rw-r--r-- 20.6 KB
Makefile -rw-r--r-- 7.1 KB
alsa-driver-api.tmpl -rw-r--r-- 4.0 KB
crypto-API.tmpl -rw-r--r-- 41.7 KB
debugobjects.tmpl -rw-r--r-- 15.5 KB
device-drivers.tmpl -rw-r--r-- 14.7 KB
deviceiobook.tmpl -rw-r--r-- 11.0 KB
drm.tmpl -rw-r--r-- 172.5 KB
filesystems.tmpl -rw-r--r-- 13.1 KB
gadget.tmpl -rw-r--r-- 29.9 KB
genericirq.tmpl -rw-r--r-- 17.4 KB
kernel-api.tmpl -rw-r--r-- 8.6 KB
kernel-hacking.tmpl -rw-r--r-- 42.0 KB
kernel-locking.tmpl -rw-r--r-- 66.2 KB
kgdb.tmpl -rw-r--r-- 41.6 KB
libata.tmpl -rw-r--r-- 46.6 KB
librs.tmpl -rw-r--r-- 8.0 KB
lsm.tmpl -rw-r--r-- 12.0 KB
media_api.tmpl -rw-r--r-- 6.6 KB
mtdnand.tmpl -rw-r--r-- 43.4 KB
networking.tmpl -rw-r--r-- 2.9 KB
rapidio.tmpl -rw-r--r-- 4.6 KB
regulator.tmpl -rw-r--r-- 9.8 KB
s390-drivers.tmpl -rw-r--r-- 5.4 KB
scsi.tmpl -rw-r--r-- 14.5 KB
sh.tmpl -rw-r--r-- 2.6 KB
stylesheet.xsl -rw-r--r-- 445 bytes
tracepoint.tmpl -rw-r--r-- 3.3 KB
uio-howto.tmpl -rw-r--r-- 35.9 KB
usb.tmpl -rw-r--r-- 38.4 KB
w1.tmpl -rw-r--r-- 2.5 KB
writing-an-alsa-driver.tmpl -rw-r--r-- 200.1 KB
writing_musb_glue_layer.tmpl -rw-r--r-- 32.0 KB
writing_usb_driver.tmpl -rw-r--r-- 17.0 KB
z8530book.tmpl -rw-r--r-- 14.7 KB

back to top