]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: undefined return value in spl_blk_load_image
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 6 Sep 2023 12:25:11 +0000 (14:25 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 9 Sep 2023 04:12:47 +0000 (06:12 +0200)
commit323e91a1832b7f10e8966b2fd43b71cf27abefa7
treee42856673f424d3d5692190bfbdf331d405d674d
parentc0c08be5468cb26db597932bc69c4eda1129841d
spl: undefined return value in spl_blk_load_image

spl_blk_load_image() should not return an uninitialized value if
blk_get_devnum_by_uclass_id() fails.

Fixes: 8ce6a2e17577 ("spl: blk: Support loading images from fs")
Reported-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
common/spl/spl_blk_fs.c