summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx6qdl.dtsi
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2023-11-22 14:46:36 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-13 18:18:13 +0100
commit69b669cc638917542a4e0426140e541cada051ea (patch)
treea310d2e04744a0429029c82d60448cb8316c1504 /arch/arm/boot/dts/imx6qdl.dtsi
parent59348f148235f0c7c3bceb1106fefd723da61a45 (diff)
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: e76bdfd7403a ("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>
Diffstat (limited to 'arch/arm/boot/dts/imx6qdl.dtsi')
0 files changed, 0 insertions, 0 deletions