Skip to content
Commit 74f5baa2 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Heinrich Schuchardt
Browse files

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: default avatarPatrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 07805f20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment