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
Raw File
00-INDEX
00-INDEX
	- this file
boot.txt
	- List of boot protocol versions
early-microcode.txt
	- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
earlyprintk.txt
	- Using earlyprintk with a USB2 debug port key.
entry_64.txt
	- Describe (some of the) kernel entry points for x86.
exception-tables.txt
	- why and how Linux kernel uses exception tables on x86
mtrr.txt
	- how to use x86 Memory Type Range Registers to increase performance
pat.txt
	- Page Attribute Table intro and API
usb-legacy-support.txt
	- how to fix/avoid quirks when using emulated PS/2 mouse/keyboard.
zero-page.txt
	- layout of the first page of memory.
back to top