From: Tom Rini Date: Sun, 24 Sep 2017 17:36:44 -0400 Subject: [U-Boot] [PATCH 2/3] fs/fat: Fix pathnames using '..' that lead to the root directory In-Reply-To: <20170924210736.13335-2-tuomas.tynkkynen@iki.fi> References: <20170924210736.13335-1-tuomas.tynkkynen@iki.fi> <20170924210736.13335-2-tuomas.tynkkynen@iki.fi> Message-ID: <20170924213644.GB29028@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 25, 2017 at 12:07:35AM +0300, Tuomas Tynkkynen wrote: > If we end up back in the root directory via a '..' directory entry, set > itr->is_root accordingly. Failing to do that gives spews like > "Invalid FAT entry" and being unable to access directory entries located > past the first cluster of the root directory on FAT12/FAT16. > > Fixes: 8eafae209c35 ("fat/fs: convert to directory iterators") > Signed-off-by: Tuomas Tynkkynen Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: