linux-stable/arch/arm
Kunwu Chan 27db23931d ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
[ Upstream commit c72b9c33ef ]

kasprintf() returns a pointer to dynamically allocated memory which can
be NULL upon failure. When 'soc_dev_attr->family' is NULL,it'll trigger
the null pointer dereference issue, such as in 'soc_info_show'.

And when 'soc_device_register' fails, it's necessary to release
'soc_dev_attr->family' to avoid memory leaks.

Fixes: 6770b21143 ("ARM: OMAP2+: Export SoC information to userspace")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Message-ID: <20231123145237.609442-1-chentao@kylinos.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-08 11:25:02 +01:00
..
boot ARM: dts: qcom: mdm9615: populate vsdcc fixed regulator 2023-11-20 10:27:34 +01:00
common ARM: 8847/1: pm: fix HYP/SVC mode mismatch when MCPM is used 2020-01-27 14:46:22 +01:00
configs USB: rio500: Remove Rio 500 kernel driver 2019-10-17 13:43:20 -07:00
crypto crypto: arm/crc32 - avoid warning when compiling with Clang 2019-11-20 18:00:23 +01:00
firmware ARM: trusted_foundations: do not use naked function 2018-12-01 09:42:49 +01:00
include ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:48:23 +02:00
kernel hw_breakpoint: fix single-stepping when using bpf_overflow_handler 2023-09-23 10:47:03 +02:00
kvm
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 10:27:34 +01:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: add missing put_device() call in at91_pm_sram_init() 2020-08-21 09:48:04 +02:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-07-02 16:18:10 +02:00
mach-bcm ARM: bcm: Fix refcount leak in bcm_kona_smc_init 2022-08-25 11:11:15 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-07-02 16:18:10 +02:00
mach-davinci ARM: davinci: da850-evm: Avoid NULL pointer dereference 2022-04-20 09:08:33 +02:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx Revert "ARM: ep93xx: fix missing-prototype warnings" 2023-09-02 09:21:32 +02:00
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-07-02 16:18:10 +02:00
mach-footbridge ARM: footbridge: fix PCI interrupt mapping 2021-04-28 12:08:42 +02:00
mach-gemini
mach-highbank
mach-hisi ARM: hisi: Add missing of_node_put after of_find_compatible_node 2022-06-14 16:53:46 +02:00
mach-imx ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence 2021-10-17 10:08:33 +02:00
mach-integrator ARM: integrator: Add some Kconfig selections 2020-06-25 15:41:47 +02:00
mach-iop13xx ARM: iop: don't use using 64-bit DMA masks 2019-05-08 07:20:51 +02:00
mach-iop32x ARM: iop32x/n2100: fix PCI IRQ mapping 2019-02-15 08:09:12 +01:00
mach-iop33x
mach-ixp4xx
mach-keystone ARM: keystone: fix integer overflow warning 2021-04-28 12:08:40 +02:00
mach-ks8695 ARM: ks8695: fix section mismatch warning 2019-12-05 15:37:15 +01:00
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-mmp ARM: mmp: fix timer_read delay 2023-01-18 09:26:08 +01:00
mach-moxart
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-12-08 11:16:30 +01:00
mach-netx
mach-nomadik
mach-nspire
mach-omap1 ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init() 2023-03-11 16:26:34 +01:00
mach-omap2 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 2024-01-08 11:25:02 +01:00
mach-orion5x ARM: orion5x: fix d2net gpio initialization 2023-08-11 11:33:42 +02:00
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: remove use of symbol_get() 2023-09-23 10:46:52 +02:00
mach-qcom
mach-realview
mach-rockchip
mach-rpc ARM: riscpc: fix lack of keyboard interrupts after irq conversion 2020-01-27 14:46:34 +01:00
mach-s3c24xx ARM: 9187/1: JIVE: fix return value of __setup handler 2022-04-20 09:08:26 +02:00
mach-s3c64xx
mach-s5pv210
mach-sa1100 treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
mach-shmobile soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains() 2020-12-29 13:46:50 +01:00
mach-socfpga ARM: socfpga: Fix crash with CONFIG_FORTIRY_SOURCE 2021-12-08 08:46:48 +01:00
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tango ARM: tango: Improve ARCH_MULTIPLATFORM compatibility 2019-02-15 08:09:12 +01:00
mach-tegra ARM: tegra: Correct PL310 Auxiliary Control Register initialization 2020-06-20 10:25:19 +02:00
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress ARM: versatile: Add missing of_node_put in dcscb_init 2022-06-14 16:53:46 +02:00
mach-vt8500
mach-w90x900
mach-zx
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-03-11 16:26:34 +01:00
mm ARM: 8933/1: replace Sun/Solaris style flag on section directive 2023-11-08 11:21:06 +01:00
net arm, bpf: Fix bugs with ALU64 {RSH, ARSH} BPF_K shift by 0 2020-04-24 08:01:00 +02:00
nwfpe ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod 2023-01-18 09:26:37 +01:00
oprofile
plat-iop ARM: iop: don't use using 64-bit DMA masks 2019-05-08 07:20:51 +02:00
plat-omap
plat-orion ARM: orion: don't use using 64-bit DMA masks 2019-05-08 07:20:51 +02:00
plat-pxa ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data" 2020-01-27 14:46:29 +01:00
plat-samsung ARM: samsung: fix PM debug build with DEBUG_LL but !MMU 2020-11-05 11:07:05 +01:00
plat-versatile
probes ARM: 9214/1: alignment: advance IT state after emulating Thumb instruction 2022-07-21 20:42:43 +02:00
tools
vdso ARM: vdso: Remove dependency with the arch_timer driver internals 2019-05-31 06:47:18 -07:00
vfp ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc 2019-02-20 10:20:46 +01:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-08 08:41:59 +01:00
Kconfig ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:48:23 +02:00
Kconfig-nommu
Kconfig.debug ARM: fix function graph tracer and unwinder dependencies 2022-10-26 13:16:51 +02:00
Makefile ARM: 9156/1: drop cc-option fallbacks for architecture selection 2021-11-26 11:40:36 +01:00