diff options
author | Yang Yingliang <[email protected]> | 2022-04-26 16:49:13 +0800 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2022-04-27 17:15:09 +0200 |
commit | 9b2152f96f4a243bdfb89027c0d920aa0af810e7 (patch) | |
tree | e2c7e72474297127e878b831b5a1f83e8fa25992 /lib/mpi/mpi-sub-ui.c | |
parent | ddf66aefd685fd46500b9917333e1b1e118276dc (diff) |
mtd: rawnand: tmio: check return value after calling platform_get_resource()
It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.
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