linux-stable/drivers/hsi
Chengfeng Ye 4ff69cf3b1 HSI: core: Fix return freed object in hsi_new_client
[ Upstream commit a1ee1c08fc ]

cl is freed on error of calling device_register, but this
object is return later, which will cause uaf issue. Fix it
by return NULL on error.

Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 09:19:41 +01:00
..
clients HSI changes for the 5.4 series 2019-09-22 12:02:21 -07:00
controllers HSI: Fix PM usage counter unbalance in ssi_hw_init 2021-03-04 10:26:26 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
hsi_boardinfo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
hsi_core.c HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:19:41 +01:00
hsi_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00