[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150422134306.GV889@ZenIV.linux.org.uk>
Date: Wed, 22 Apr 2015 14:43:06 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Johannes Berg <johannes@...solutions.net>
Cc: linux-kernel@...r.kernel.org, j@...fi,
Johannes Berg <johannes.berg@...el.com>
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@...el.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists