kernel: fix possible mtd NULL pointer dereference
authorRafał Miłecki <rafal@milecki.pl>
Tue, 4 Oct 2022 10:04:37 +0000 (12:04 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 4 Oct 2022 10:43:01 +0000 (12:43 +0200)
commit977f6f36a0121b213f9eee4a7deb7fdf073320e4
tree0aabc8d1e52aef65b682bae5fa6943b15ca8ce8c
parent562894b39da381264a34ce31e9334c8a036fa139
kernel: fix possible mtd NULL pointer dereference

Fixes: cae4d089bc1d3 ("kernel: backport mtd dynamic partition patch")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a5265497a4f6da158e95d6a450cb2cb6dc085cab)
target/linux/generic/backport-5.10/415-v6.0-mtd-core-check-partition-before-dereference.patch [new file with mode: 0644]
target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch
target/linux/generic/pending-5.10/495-mtd-core-add-get_mtd_device_by_node.patch