android_kernel_motorola_sm6225/arch/arm/mach-imx
Kunwu Chan 47aedb4ce2 ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init
[ Upstream commit 1c2b1049af3f86545fcc5fae0fc725fb64b3a09e ]

devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Release the id allocated in 'mmdc_pmu_init' when 'devm_kasprintf'
return NULL

Suggested-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Fixes: e76bdfd740 ("ARM: imx: Added perf functionality to mmdc driver")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-13 17:42:17 +01:00
..
devices
3ds_debugboard.c
3ds_debugboard.h
anatop.c
avic.c
board-mx31lilly.h
board-mx31lite.h
board-mx31moboard.h
common.h ARM: imx: build v7_cpu_resume() unconditionally 2020-03-11 14:15:11 +01:00
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c
cpu-imx31.c
cpu-imx35.c
cpu.c
cpuidle-imx5.c
cpuidle-imx6q.c
cpuidle-imx6sl.c
cpuidle-imx6sx.c ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX 2019-06-25 11:36:00 +08:00
cpuidle.h
crmregs-imx3.h
devices-imx21.h
devices-imx27.h
devices-imx31.h
devices-imx35.h
ehci-imx27.c
ehci-imx31.c
ehci-imx35.c
ehci.h
gpc.c
hardware.h
headsmp.S
hotplug.c
iim.h
imx27-dt.c
imx31-dt.c
imx35-dt.c
iomux-imx31.c
iomux-mx2x.h
iomux-mx3.h
iomux-mx21.h
iomux-mx27.h
iomux-mx35.h
iomux-v1.c
iomux-v1.h
iomux-v3.c
iomux-v3.h
irq-common.c
irq-common.h
Kconfig
mach-armadillo5x0.c
mach-bug.c
mach-imx1.c
mach-imx6q.c
mach-imx6sl.c
mach-imx6sx.c
mach-imx6ul.c
mach-imx7d-cm4.c
mach-imx7d.c
mach-imx25.c
mach-imx27_visstrim_m10.c
mach-imx50.c
mach-imx51.c
mach-imx53.c
mach-kzm_arm11_01.c
mach-ls1021a.c
mach-mx21ads.c
mach-mx27_3ds.c
mach-mx27ads.c
mach-mx31_3ds.c
mach-mx31ads.c
mach-mx31lilly.c
mach-mx31lite.c
mach-mx31moboard.c
mach-mx35_3ds.c
mach-pca100.c
mach-pcm037.c
mach-pcm037_eet.c
mach-pcm043.c
mach-qong.c
mach-vf610.c
mach-vpr200.c
Makefile ARM: imx: provide v7_cpu_resume() only on ARM_CPU_SUSPEND=y 2020-04-29 16:31:31 +02:00
Makefile.boot
mm-imx3.c
mm-imx21.c
mm-imx27.c
mmdc.c ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 17:42:17 +01:00
mx2x.h
mx3x.h
mx21.h
mx27.h
mx31.h
mx31lilly-db.c
mx31lite-db.c
mx31moboard-devboard.c
mx31moboard-marxbot.c
mx31moboard-smartbot.c
mx35.h
mxc.h
pcm037.h
platsmp.c
pm-imx5.c ARM: imx5: add missing put_device() call in imx_suspend_alloc_ocram() 2020-06-30 23:17:12 -04:00
pm-imx6.c ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence 2021-10-13 10:10:51 +02:00
pm-imx25.c
pm-imx27.c
resume-imx6.S ARM: imx: build v7_cpu_resume() unconditionally 2020-03-11 14:15:11 +01:00
src.c
ssi-fiq-ksym.c
ssi-fiq.S
suspend-imx6.S ARM: imx: build suspend-imx6.S with arm instruction set 2021-02-03 23:23:25 +01:00
suspend-imx53.S ARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info 2021-07-28 11:13:42 +02:00
system.c
tzic.c
ulpi.h