Commit 7ec4cdb
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 <[email protected]>
Reported-by: kernel test robot <[email protected]>
Fixes: ad9b10d ("mtd: core: introduce of support for dynamic partitions")
Signed-off-by: Tetsuo Handa <[email protected]>
CC: [email protected]
Signed-off-by: Richard Weinberger <[email protected]>1 parent 9661524 commit 7ec4cdb
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
| |||
0 commit comments