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
trigger_code.bin.ihex
:10000000B6C3AABBCCDDC807A000F0075E0006009F
:10001000F0070A000800F00900000200E7073600B8
:100020000000F00700000400E70750C310C0F0090B
:100030000EC00000E78701000EC097CFD70900C0AF
:100040001702C807A000E71750C310C030D804003B
:10005000305C08000400B0C00600C805E70500C019
:10006000C0DF97CF49AFC007000060AF4AAF000CB8
:100070000C0040D2001C0C0040D230000800F007F9
:1000800000000400F0078600060067CF270C02007E
:100090000000270C00000EC049AF64AFC00700008D
:1000A0004BAF4AAF5ACF0000000000000000000034
:0600B000940005000000B1
:00000001FF
back to top