]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: add protection for block_dev
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 10 Apr 2019 09:02:58 +0000 (11:02 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 12 Apr 2019 20:00:42 +0000 (22:00 +0200)
commit1b2ce7ce27b5b67e442315af8abb8ceb7d495696
tree0970546084301513b98520040a2b0f423eee1d41
parentd588da29c1bd8ff86ad5c736c99dbe5d359f835a
efi_loader: add protection for block_dev

Check the value of block_dev before to use this pointer.

This patch solves problem for the command "load" when ubifs
is previously mounted: in this case the function
blk_get_device_part_str("ubi 0") don't return error but return
block_dev = NULL and then data abort.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path.c