
17 Jul
2020
17 Jul
'20
10:57 p.m.
On Tue, Jun 16, 2020 at 10:03:52PM +0200, Heiko Thiery wrote:
From: Thomas Schaefer thomas.schaefer@kontron.com
- 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 thomas.schaefer@kontron.com [hthiery: slightly reword the commit message] Signed-off-by: Heiko Thiery heiko.thiery@gmail.com Reviewed-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
--
Tom