]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: blk_fs: Fix uninitialized return value when we can't get a blk_desc
authorSean Anderson <seanga2@gmail.com>
Wed, 8 Nov 2023 16:48:33 +0000 (11:48 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 18:49:13 +0000 (13:49 -0500)
commit1e86296f7f1079b70c583a917d0c24cd02f77491
treedaaba337ccd5f32420a8b02b87dae017087851f2
parent5e6a112e1187ebc570b8befd1dd6eef3a64dec39
spl: blk_fs: Fix uninitialized return value when we can't get a blk_desc

Initialize ret to avoid returning garbage if blk_get_devnum_by_uclass_id
fails.

Fixes: 8ce6a2e1757 ("spl: blk: Support loading images from fs")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl_blk_fs.c