aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-04-26 16:49:12 +0800
committerMiquel Raynal <[email protected]>2022-04-27 17:15:07 +0200
commitddf66aefd685fd46500b9917333e1b1e118276dc (patch)
tree40b32d679f783750cd42d150186704fc46059567 /lib/mpi/mpi-sub-ui.c
parenta28ed09dafee20da51eb26452950839633afd824 (diff)
mtd: rawnand: intel: fix possible null-ptr-deref in ebu_nand_probe()
It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. Fixes: 0b1039f016e8 ("mtd: rawnand: Add NAND controller support on Intel LGM SoC") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions