linux-stable/arch/arm/mach-imx
Kunwu Chan cb2034c02f ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init
[ Upstream commit 1c2b1049af ]

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 18:36:41 +01:00
..
anatop.c ARM: imx: Use correct SRC base address 2020-12-01 08:09:01 +08:00
avic.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
common.h ARM: imx: common: Move prototype outside the SMP block 2021-07-14 15:28:43 +08:00
cpu-imx5.c ARM: imx: add missing of_node_put() 2023-02-01 08:27:04 +01:00
cpu-imx25.c ARM: imx: add missing of_node_put() 2023-02-01 08:27:04 +01:00
cpu-imx27.c ARM: imx: add missing of_node_put() 2023-02-01 08:27:04 +01:00
cpu-imx31.c ARM: imx: add missing of_node_put() 2023-02-01 08:27:04 +01:00
cpu-imx35.c ARM: imx: add missing of_node_put() 2023-02-01 08:27:04 +01:00
cpu.c
cpuidle-imx5.c
cpuidle-imx6q.c ARM: imx6q: Fixup RCU usage for cpuidle 2020-09-30 17:42:43 +02:00
cpuidle-imx6sl.c clk: imx: Move 'imx6sl_set_wait_clk()'s prototype out to accessible header 2021-01-30 22:13:23 +08:00
cpuidle-imx6sx.c
cpuidle-imx7ulp.c
cpuidle.h
crmregs-imx3.h
gpc.c
hardware.h ARM: imx: Remove unused IMX_GPIO_NR() macro 2021-01-29 16:47:25 +08:00
headsmp.S ARM: imx: add smp support for imx7d 2021-06-12 12:02:57 +08:00
hotplug.c ARM: imx: add smp support for imx7d 2021-06-12 12:02:57 +08:00
iim.h
irq-common.c
irq-common.h
Kconfig ARM: imx: Kconfig: Fix typo in help 2021-03-15 12:21:59 +08:00
mach-imx1.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mach-imx6q.c Revert "ARM: imx6q: drop of_platform_default_populate() from init_machine" 2021-09-22 11:49:03 +08:00
mach-imx6sl.c
mach-imx6sx.c ARM: imx6sx: remove Atheros AR8031 PHY fixup 2021-05-23 11:32:46 +08:00
mach-imx6ul.c ARM: mach-imx: imx6ul: Print SOC revision on boot 2021-01-07 11:25:18 +08:00
mach-imx7d-cm4.c
mach-imx7d.c ARM: imx: add smp support for imx7d 2021-06-12 12:02:57 +08:00
mach-imx7ulp.c ARM: imx: imx7ulp: Add a comment explaining the B2 silicon version 2020-11-10 09:56:01 +08:00
mach-imx25.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mach-imx27.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mach-imx31.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mach-imx35.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mach-imx50.c ARM: imx: Initialize SoC ID on i.MX50 2021-05-13 15:42:21 +08:00
mach-imx51.c
mach-imx53.c
mach-ls1021a.c
mach-vf610.c
Makefile ARM: imx: add smp support for imx7d 2021-06-12 12:02:57 +08:00
Makefile.boot
mm-imx3.c ARM: imx: avic: Convert to using IRQCHIP_DECLARE 2021-03-15 12:21:18 +08:00
mmdc.c ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:36:41 +01:00
mx2x.h
mx3x.h
mx27.h ARM: imx: Remove unused definitions 2020-09-22 14:08:13 +08:00
mx31.h ARM: imx: Remove unused definitions 2020-09-22 14:08:13 +08:00
mx35.h ARM: imx: Remove unused definitions 2020-09-22 14:08:13 +08:00
mxc.h
platsmp.c ARM: imx: add smp support for imx7d 2021-06-12 12:02:57 +08:00
pm-imx5.c ARM: mach-imx: Fix a spelling in the file pm-imx5.c 2021-03-15 12:21:59 +08:00
pm-imx6.c ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence 2021-10-05 13:58:25 +08:00
pm-imx7ulp.c
pm-imx25.c
pm-imx27.c ARM: imx: pm-imx27: Include "common.h" 2021-05-23 10:48:56 +08:00
resume-imx6.S
src.c ARM: imx: register reset controller from a platform driver 2021-10-15 09:38:06 +08:00
ssi-fiq-ksym.c
ssi-fiq.S
suspend-imx6.S ARM: imx: build suspend-imx6.S with arm instruction set 2021-01-18 14:47:34 +08:00
suspend-imx53.S ARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info 2021-05-13 15:40:08 +08:00
system.c
tzic.c