diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2022-07-25 15:49:25 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2022-08-01 21:33:11 +0200 |
commit | 7ec4cdb321738d44ae5d405e7b6ac73dfbf99caa (patch) | |
tree | 46b80b2017aec2031048be5fe6068ed234855560 /mm | |
parent | Merge tag 'spi-nor/for-5.20' into mtd/next (diff) | |
download | linux-7ec4cdb321738d44ae5d405e7b6ac73dfbf99caa.tar.xz linux-7ec4cdb321738d44ae5d405e7b6ac73dfbf99caa.zip |
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 'mm')
0 files changed, 0 insertions, 0 deletions