android_kernel_xiaomi_sm8350/arch/arm/mach-imx
Kunwu Chan 69b669cc63 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 18:18:13 +01:00
..
devices
3ds_debugboard.c
3ds_debugboard.h
anatop.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
avic.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
board-mx31lilly.h
board-mx31lite.h
board-mx31moboard.h
common.h
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c ARM: imx: add missing of_node_put() 2023-02-06 07:52:35 +01:00
cpu-imx31.c
cpu-imx35.c ARM: imx: add missing of_node_put() 2023-02-06 07:52:35 +01:00
cpu.c
cpuidle-imx5.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
cpuidle-imx6q.c
cpuidle-imx6sl.c
cpuidle-imx6sx.c
cpuidle-imx7ulp.c ARM: imx: add i.MX7ULP cpuidle support 2019-01-15 23:03:40 +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 Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
ehci-imx35.c
ehci.h
gpc.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
hardware.h
headsmp.S
hotplug.c
iim.h
imx27-dt.c
imx31-dt.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
iomux-v3.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
irq-common.c
irq-common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
Kconfig
mach-armadillo5x0.c
mach-bug.c
mach-imx1.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
mach-imx6q.c
mach-imx6sl.c
mach-imx6sx.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
mach-imx6ul.c
mach-imx7d-cm4.c
mach-imx7d.c ARM: imx: stop adjusting ar8031 phy tx delay 2019-08-24 20:30:22 +02:00
mach-imx7ulp.c
mach-imx25.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
mach-imx27_visstrim_m10.c
mach-imx50.c
mach-imx51.c
mach-imx53.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
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_eet.c
mach-pcm037.c
mach-pcm043.c
mach-qong.c
mach-vf610.c
mach-vpr200.c
Makefile
Makefile.boot
mm-imx3.c
mm-imx21.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
mm-imx27.c
mmdc.c ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:18:13 +01:00
mx2x.h
mx3x.h
mx21.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
mx27.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
mx31.h
mx31lilly-db.c
mx31lite-db.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
mx31moboard-devboard.c
mx31moboard-marxbot.c
mx31moboard-smartbot.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
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 15:37:00 -04:00
pm-imx6.c
pm-imx7ulp.c ARM: imx: add i.MX7ULP cpuidle support 2019-01-15 23:03:40 +08:00
pm-imx25.c
pm-imx27.c ARM: imx: rework mx27_pm_init() call 2016-06-28 10:26:40 +08:00
resume-imx6.S
src.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
ssi-fiq-ksym.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
ssi-fiq.S
suspend-imx6.S
suspend-imx53.S
system.c
tzic.c
ulpi.h