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: 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>
2023-12-13 18:18:13 +01:00
..
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2020-03-12 13:00:30 +01:00
2023-02-06 07:52:35 +01:00
2023-02-06 07:52:35 +01:00
2023-02-06 07:52:35 +01:00
2023-02-06 07:52:35 +01:00
2023-02-06 07:52:35 +01:00
2018-12-10 08:56:30 +08:00
2019-06-19 17:09:55 +02:00
2019-07-19 17:05:08 -07:00
2019-06-19 17:09:55 +02:00
2019-06-21 09:58:42 -07:00
2019-01-15 23:03:40 +08:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-24 17:39:00 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2020-04-13 10:48:11 +02:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2018-07-03 15:17:57 +08:00
2019-08-24 20:30:22 +02:00
2019-01-16 09:36:07 +08:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2020-04-29 16:33:20 +02:00
2015-05-20 23:10:14 +02:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2023-12-13 18:18:13 +01:00
2019-05-21 11:28:39 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2017-11-02 11:10:55 +01:00
2019-05-21 11:28:39 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:37 -07:00
2020-06-30 15:37:00 -04:00
2021-10-13 10:08:19 +02:00
2019-01-15 23:03:40 +08:00
2019-06-19 17:09:55 +02:00
2016-06-28 10:26:40 +08:00
2020-03-12 13:00:30 +01:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-02-03 23:25:58 +01:00
2021-07-25 14:35:11 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2017-11-02 11:10:55 +01:00