From: Johannes Berg Date: Wed, 22 Apr 2015 09:55:14 +0000 (+0200) Subject: fs/9p: fix readdir() X-Git-Tag: omap-for-v4.1/fixes-rc1~20^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e3c500594dca9a12c27eb6d77b82e0766879bfd;p=pandora-kernel.git 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 Fixes: e1200fe68f20 ("9p: switch p9_client_read() to passing struct iov_iter *") Signed-off-by: Johannes Berg Signed-off-by: Al Viro --- Reading git-diff-tree failed