]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: nand: Fix NULL-pointer dereference
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:39 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:48 +0000 (12:43 -0500)
commit23fe0c0747a376e39ce54485735a5df3b322f90b
tree6bb961da1e2f488e14b5a18b3cb8e2c16979490b
parenta4c83bda17196bf5d1ce640844595aaeced6465e
spl: nand: Fix NULL-pointer dereference

spl_nand_fit_read unconditionally accesses load->priv. Ensure it is set.

Fixes: 00e180cc513 ("spl: nand: support loading i.MX container format file")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/spl/spl_nand.c