Skip to content
Commit 7ec4cdb3 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Richard Weinberger
Browse files

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: default avatarsyzbot <syzbot+fe013f55a2814a9e8cfd@syzkaller.appspotmail.com>
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Fixes: ad9b10d1

 ("mtd: core: introduce of support for dynamic partitions")
Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
CC: stable@vger.kernel.org
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 9661524b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment