commit | ba7a950e5df52d12b53b0c388faefe86a40e7cb2 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Wed Apr 10 11:02:58 2019 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Apr 12 22:00:42 2019 +0200 |
tree | 0970546084301513b98520040a2b0f423eee1d41 | |
parent | 3700d57bc45f173b5a551cd7188ce92af6f40c9f [diff] |
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>