Kunwu Chan
930a61fd79
ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
...
[ Upstream commit c72b9c33ef9695ad7ce7a6eb39a9df8a01b70796 ]
kasprintf() returns a pointer to dynamically allocated memory which can
be NULL upon failure. When 'soc_dev_attr->family' is NULL,it'll trigger
the null pointer dereference issue, such as in 'soc_info_show'.
And when 'soc_device_register' fails, it's necessary to release
'soc_dev_attr->family' to avoid memory leaks.
Fixes: 6770b2114325 ("ARM: OMAP2+: Export SoC information to userspace")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Message-ID: <20231123145237.609442-1-chentao@kylinos.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-01 12:38:53 +00:00
..
2020-03-25 11:50:48 +01:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2023-07-19 16:21:23 +02:00
2021-05-18 09:44:42 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-11-19 11:44:46 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-01-26 13:43:17 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-01-23 09:12:54 -08:00
2022-06-10 14:51:35 +02:00
2019-12-12 09:42:34 -08:00
2020-05-05 11:16:06 -07:00
2020-05-05 11:16:06 -07:00
2022-06-10 14:51:35 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03: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-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2022-06-10 14:51:35 +02:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2022-04-21 14:47:15 +03:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2019-06-19 17:09:55 +02:00
2021-10-06 12:36:22 +03:00
2020-08-19 10:19:13 +03:00
2021-05-21 12:27:59 +03:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2022-04-29 09:53:28 +02:00
2022-04-21 14:47:15 +03:00
2021-05-21 12:28:47 +03:00
2020-03-09 10:24:01 +01:00
2021-01-15 12:48:07 +02:00
2019-06-19 17:09:55 +02:00
2019-08-12 13:17:39 -03:00
2022-08-04 12:12:54 -07:00
2019-06-19 17:09:07 +02:00
2022-04-29 09:53:28 +02:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2024-01-01 12:38:53 +00:00
2019-06-19 17:09:55 +02:00
2021-03-12 10:11:24 +02:00
2015-07-16 00:06:05 -07:00
2022-08-02 08:02:59 -07:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2019-05-30 11:26:32 -07:00
2022-04-29 09:52:46 +02:00
2019-06-19 17:09:55 +02:00
2020-07-13 12:18:26 +02:00
2019-06-05 17:37:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2023-03-10 09:33:45 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2022-04-21 14:47:15 +03:00
2022-04-21 14:47:15 +03:00
2019-06-19 17:09:55 +02:00
2020-05-19 09:38:04 -07:00
2020-05-19 09:38:04 -07:00
2020-06-29 10:22:47 -07:00
2022-06-10 14:51:35 +02:00
2020-05-19 09:38:04 -07:00
2020-05-19 09:38:04 -07:00
2019-06-19 17:09:55 +02:00
2020-05-19 09:38:04 -07:00
2019-06-19 17:09:55 +02:00
2019-12-17 08:17:47 -08:00
2021-12-17 14:08:10 +02:00
2021-03-12 10:11:24 +02:00
2022-06-10 14:51:36 +02:00
2020-08-19 10:19:13 +03:00
2021-03-31 09:04:22 +03:00
2019-07-19 17:05:08 -07:00
2019-06-19 17:09:55 +02:00
2022-04-29 09:53:28 +02:00
2020-08-07 11:33:26 -07:00
2022-04-29 09:53:28 +02:00
2022-04-29 09:53:28 +02:00
2020-04-10 15:36:22 -07:00
2020-05-12 08:35:56 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2022-06-10 14:51:36 +02:00
2022-06-10 14:51:36 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-06-28 07:58:51 +03:00
2019-12-30 09:46:34 -08:00
2021-06-11 10:43:08 +03:00
2021-07-29 09:02:27 +02:00
2019-10-16 07:51:16 -07:00
2018-07-09 23:01:34 -07:00
2021-03-24 13:27:36 +02:00
2020-09-24 14:26:20 +03:00
2020-09-24 14:26:20 +03:00
2021-03-17 15:15:45 +02:00
2019-06-19 17:09:55 +02:00
2023-09-13 09:43:00 +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-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +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
2022-06-10 14:51:35 +02:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03: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-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2022-06-28 08:09:30 +03:00
2019-06-19 17:09:55 +02:00
2021-10-06 12:17:17 +03:00
2022-06-10 14:51:35 +02:00
2022-06-10 14:51:35 +02:00
2019-06-19 17:09:55 +02:00
2019-10-21 10:36:27 -07:00
2021-10-06 12:23:28 +03:00
2021-10-06 12:20:34 +03:00
2022-04-21 14:47:15 +03:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +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-06-19 17:09:55 +02:00
2021-10-06 12:36:22 +03: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
2022-04-29 09:52:46 +02:00
2019-05-30 11:26:35 -07:00
2020-08-19 10:19:13 +03:00
2020-04-21 09:41:53 -07:00
2020-08-19 10:19:13 +03:00
2019-07-19 17:05:08 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2021-04-26 11:48:26 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2022-04-29 09:53:28 +02:00
2022-04-22 11:08:55 +02:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2023-03-10 09:32:32 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2022-06-10 14:51:35 +02:00
2019-10-18 07:56:51 -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
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00