]> git.baikalelectronics.ru Git - uboot.git/commit
spl: don't assume NVMe partition 1 exists
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 15 Aug 2023 16:07:36 +0000 (18:07 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 19 Aug 2023 02:12:52 +0000 (04:12 +0200)
commit8e4bcc9af71067f4d76081c07919be8b351df610
tree9844e35ca53e8d199e6d81be4800a8df8803312c
parent917b658024b88669b4e7fb58e019e399bc012c24
spl: don't assume NVMe partition 1 exists

There is no requirement that a partition 1 exists in a partition table.
We should not try to retrieve information about it.

We should not even try reading with partition number
CONFIG_SYS_NVME_BOOT_PARTITION here as this is done in the fs_set_blk_dev()
call anyway.

Fixes: 45c3b1717484 ("spl: blk: Support loading images from fs")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_blk_fs.c