android_kernel_motorola_sm6375/arch/arm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kunwu Chan 14d915ca5a ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
[ Upstream commit c72b9c33ef9695ad7ce7a6eb39a9df8a01b70796 ]

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:29:43 +01:00
..
boot ARM: dts: imx7: Declare timers compatible with fsl,imx6dl-gpt 2023-12-13 18:18:14 +01:00
common
configs
crypto crypto: arm/ghash-ce - define fpu before fpu registers are referenced 2022-07-02 16:28:52 +02:00
include ARM: 9320/1: fix stack depot IRQ stack filter 2023-11-28 16:50:15 +00:00
kernel hw_breakpoint: fix single-stepping when using bpf_overflow_handler 2023-09-23 11:00:03 +02:00
kvm
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 10:30:12 +01:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: use proper compatibles for sam9x60's rtc and rtt 2022-07-12 16:30:48 +02:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-06-29 08:58:49 +02:00
mach-bcm ARM: bcm: Fix refcount leak in bcm_kona_smc_init 2022-08-25 11:17:33 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-06-29 08:58:49 +02:00
mach-davinci
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx ARM: ep93xx: fix missing-prototype warnings 2023-07-27 08:37:14 +02:00
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-06-29 08:58:49 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:18:13 +01:00
mach-integrator
mach-iop32x
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson ARM: meson: Fix refcount leak in meson_smp_prepare_cpus 2022-07-12 16:30:48 +02:00
mach-milbeaut
mach-mmp ARM: mmp: fix timer_read delay 2023-01-18 11:40:52 +01:00
mach-moxart
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-12-08 11:22:58 +01:00
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init() 2023-03-11 16:43:32 +01:00
mach-omap2 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 2024-01-08 11:29:43 +01:00
mach-orion5x ARM: orion5x: fix d2net gpio initialization 2023-07-27 08:37:26 +02:00
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: remove use of symbol_get() 2023-09-23 10:59:36 +02:00
mach-qcom
mach-rda
mach-realview
mach-rockchip
mach-rpc
mach-s3c24xx
mach-s3c64xx
mach-s5pv210
mach-sa1100 treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
mach-shmobile ARM: shmobile: rcar-gen2: Increase refcount for new reference 2022-08-25 11:17:32 +02:00
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tango
mach-tegra
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-zx
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-03-11 16:43:32 +01:00
mm treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
net
nwfpe ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod 2023-01-18 11:41:48 +01:00
oprofile
plat-omap
plat-orion
plat-pxa
plat-samsung
plat-versatile
probes ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-07-27 08:37:06 +02:00
tools
vdso
vfp ARM: 8989/1: use .fpu assembler directives instead of assembler arguments 2022-07-02 16:28:50 +02:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-08 08:44:23 +01:00
Kconfig ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:33 +02:00
Kconfig-nommu
Kconfig.debug
Makefile