diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2022-07-25 16:49:25 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2022-08-01 22:33:11 +0300 |
commit | 7ec4cdb321738d44ae5d405e7b6ac73dfbf99caa (patch) | |
tree | 46b80b2017aec2031048be5fe6068ed234855560 /drivers/mtd/sm_ftl.c | |
parent | 9661524b9b26a45ecb045d7d36f85e83d8021a86 (diff) | |
download | linux-7ec4cdb321738d44ae5d405e7b6ac73dfbf99caa.tar.xz |
mtd: core: check partition before dereference
syzbot is reporting NULL pointer dereference at mtd_check_of_node() [1],
for mtdram test device (CONFIG_MTD_MTDRAM) is not partition.
Link: https://syzkaller.appspot.com/bug?extid=fe013f55a2814a9e8cfd [1]
Reported-by: syzbot <syzbot+fe013f55a2814a9e8cfd@syzkaller.appspotmail.com>
Reported-by: kernel test robot <oliver.sang@intel.com>
Fixes: ad9b10d1eaada169 ("mtd: core: introduce of support for dynamic partitions")
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
CC: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/sm_ftl.c')
0 files changed, 0 insertions, 0 deletions