diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-10-04 12:04:37 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2022-10-04 12:06:03 +0200 |
commit | a5265497a4f6da158e95d6a450cb2cb6dc085cab (patch) | |
tree | f4dbe5b49558e8458c1d01bb91f4a4469ce9f9bc /target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch | |
parent | 45109f69a64c31aa64db05d5de37cd7f6a1aaaa2 (diff) | |
download | upstream-a5265497a4f6da158e95d6a450cb2cb6dc085cab.tar.gz upstream-a5265497a4f6da158e95d6a450cb2cb6dc085cab.tar.bz2 upstream-a5265497a4f6da158e95d6a450cb2cb6dc085cab.zip |
kernel: fix possible mtd NULL pointer dereference
Fixes: 1a9ee367343ed ("kernel: backport mtd dynamic partition patch")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch')
-rw-r--r-- | target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch b/target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch index ad68d52c72..5529bba12c 100644 --- a/target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch +++ b/target/linux/generic/hack-5.10/420-mtd-set-rootfs-to-be-root-dev.patch @@ -20,7 +20,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> #include <linux/nvmem-provider.h> #include <linux/mtd/mtd.h> -@@ -765,6 +766,19 @@ int add_mtd_device(struct mtd_info *mtd) +@@ -767,6 +768,19 @@ int add_mtd_device(struct mtd_info *mtd) of this try_ nonsense, and no bitching about it either. :) */ __module_get(THIS_MODULE); |