Johannes Berg 8e3c500594 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>
2015-04-24 15:45:03 -04:00
..
2015-04-24 15:45:03 -04:00
2015-03-18 10:29:48 +01:00
2015-04-11 22:29:40 -04:00
2015-02-15 11:11:47 -08:00
2015-04-11 22:29:39 -04:00
2015-04-11 22:29:44 -04:00
2015-04-11 22:29:43 -04:00