Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Fixes: e1200fe ("9p: switch p9_client_read() to passing struct iov_iter *") Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Al Viro <[email protected]>
- Loading branch information