Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

Pull ARM SoC fixes from Arnd Bergmann:
"These are two correctness fixes for handing DT input in the
Allwinner (sunxi) SMP startup code"

* tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
ARM: sun9i: smp: fix return code check of of_property_match_string
ARM: sun9i: smp: Fix array-index-out-of-bounds read in sunxi_mc_smp_init

+4 -4
+4 -4
arch/arm/mach-sunxi/mc_smp.c
··· 803 803 for (i = 0; i < ARRAY_SIZE(sunxi_mc_smp_data); i++) { 804 804 ret = of_property_match_string(node, "enable-method", 805 805 sunxi_mc_smp_data[i].enable_method); 806 - if (!ret) 806 + if (ret >= 0) 807 807 break; 808 808 } 809 809 810 - is_a83t = sunxi_mc_smp_data[i].is_a83t; 811 - 812 810 of_node_put(node); 813 - if (ret) 811 + if (ret < 0) 814 812 return -ENODEV; 813 + 814 + is_a83t = sunxi_mc_smp_data[i].is_a83t; 815 815 816 816 if (!sunxi_mc_smp_cpu_table_init()) 817 817 return -EINVAL;