From: Tom Rini Date: Fri, 17 Jul 2020 16:57:32 -0400 Subject: [PATCH v2 1/1] spl: fix ext4fs_mount return code handling In-Reply-To: <20200616200350.8054-1-heiko.thiery@gmail.com> References: <20200616200350.8054-1-heiko.thiery@gmail.com> Message-ID: <20200717205732.GS6227@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 Tue, Jun 16, 2020 at 10:03:52PM +0200, Heiko Thiery wrote: > From: Thomas Schaefer > > - Despite other ext4 filesystem functions, ext4fs_mount returns > 0 in case of error. > - This leads to u-boot crash in case that an SD card > with valid partition table but without ext4 filesystem created > in a partition is found on SD card. > - Fix this by returning a proper error code of '-1' from spl_load_image_ext > function in case of ext4fs_mount error. > > Signed-off-by: Thomas Schaefer > [hthiery: slightly reword the commit message] > Signed-off-by: Heiko Thiery > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: