Messages in this thread | | | Date | Wed, 22 Apr 2015 14:43:06 +0100 | From | Al Viro <> | Subject | Re: [PATCH] fs/9p: fix readdir() |
| |
On Wed, Apr 22, 2015 at 11:55:14AM +0200, Johannes Berg wrote: > From: Johannes Berg <johannes.berg@intel.com> > > 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.
Nice catch... FWIW, this hadn't been caught since it doesn't trigger on 9P.L tests. Applied, and testing setup fixed.
| |