[PATCH v2 1/5] misc: fs_loader: fix ubifs not unmounted on dev_get_priv error
Simon Glass
sjg at chromium.org
Mon Mar 16 03:43:59 CET 2026
On Fri, 6 Mar 2026 at 12:05, Christian Marangi <ansuelsmth at gmail.com> wrote:
>
> When dev_get_priv errors out, the ubifs is not umounted (if used).
>
> Correctly handle this handle condition and while at it also return -EINVAL
> instead of -ENOMEM as a better error since no memory is allocated but is
> actually an invalid scenario for fw_get_filesystem_firmware().
>
> Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
> ---
> drivers/misc/fs_loader.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list