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 11:09:47 +0000 (13:09 +0200)
commit221c6242deceb49b04da9886761d28c18202609a
tree460a51423de74eae5ada889caf85d9bc81808b88
parentabf2c60e715bbaf0e1e7a229d82d8a615840806e
kernel: fix possible mtd NULL pointer dereference

Fixes: edf3363959d3c ("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.4/415-v6.0-mtd-core-check-partition-before-dereference.patch [new file with mode: 0644]
target/linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch
target/linux/generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch