mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
spl: nand: Fix NULL-pointer dereference
spl_nand_fit_read unconditionally accesses load->priv. Ensure it is set.
Fixes: 00e180cc51
("spl: nand: support loading i.MX container format file")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
a4c83bda17
commit
23fe0c0747
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ static int spl_nand_load_element(struct spl_image_info *spl_image,
|
|||
struct spl_load_info load;
|
||||
|
||||
load.dev = NULL;
|
||||
load.priv = NULL;
|
||||
load.priv = &offset;
|
||||
load.filename = NULL;
|
||||
load.bl_len = bl_len;
|
||||
load.read = spl_nand_fit_read;
|
||||
|
|
Loading…
Add table
Reference in a new issue