aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2022-10-04 12:04:37 +0200
committerRafał Miłecki <rafal@milecki.pl>2022-10-04 12:43:01 +0200
commit977f6f36a0121b213f9eee4a7deb7fdf073320e4 (patch)
tree0aabc8d1e52aef65b682bae5fa6943b15ca8ce8c /target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
parent562894b39da381264a34ce31e9334c8a036fa139 (diff)
downloadupstream-977f6f36a0121b213f9eee4a7deb7fdf073320e4.tar.gz
upstream-977f6f36a0121b213f9eee4a7deb7fdf073320e4.tar.bz2
upstream-977f6f36a0121b213f9eee4a7deb7fdf073320e4.zip
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)
Diffstat (limited to 'target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch')
-rw-r--r--target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch b/target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
index 7de27fddb1..55388aa40c 100644
--- a/target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
+++ b/target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch
@@ -77,7 +77,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
#include "mtdcore.h"
-@@ -922,6 +923,8 @@ int mtd_device_parse_register(struct mtd
+@@ -924,6 +925,8 @@ int mtd_device_parse_register(struct mtd
register_reboot_notifier(&mtd->reboot_notifier);
}