From 0ddae04c226983e1e064d8750b8bb8724f077ad9 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Tue, 9 Aug 2016 11:23:32 +0200 Subject: brcm63xx: backport mtd of node changes from upstream Should fix parser data containing uninitialized values for of probed physmap flashes, which could break e.g. the redboot parser. Signed-off-by: Jonas Gorski --- .../patches-4.4/120-mtdpart_fixup_generic_partprobe.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 target/linux/brcm63xx/patches-4.4/120-mtdpart_fixup_generic_partprobe.patch (limited to 'target/linux/brcm63xx/patches-4.4/120-mtdpart_fixup_generic_partprobe.patch') diff --git a/target/linux/brcm63xx/patches-4.4/120-mtdpart_fixup_generic_partprobe.patch b/target/linux/brcm63xx/patches-4.4/120-mtdpart_fixup_generic_partprobe.patch new file mode 100644 index 0000000000..b662c9be2b --- /dev/null +++ b/target/linux/brcm63xx/patches-4.4/120-mtdpart_fixup_generic_partprobe.patch @@ -0,0 +1,13 @@ +--- a/drivers/mtd/mtdpart.c ++++ b/drivers/mtd/mtdpart.c +@@ -978,8 +978,8 @@ int parse_mtd_partitions(struct mtd_info + int ret, err = 0; + const char *const *types_of = NULL; + +- if (data && data->of_node) { +- types_of = of_get_probes(data->of_node); ++ if (mtd_get_of_node(master)) { ++ types_of = of_get_probes(mtd_get_of_node(master)); + if (types_of != NULL) + types = types_of; + } -- cgit v1.2.3