linux-stable/drivers/hsi
Chengfeng Ye 0d71b4d184 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:00:54 +01:00
..
clients HSI changes for the v4.13 series 2017-07-04 14:28:22 -07:00
controllers HSI: omap_ssi: Don't jump to free ID in ssi_add_controller() 2020-12-29 13:46:56 +01:00
hsi_boardinfo.c HSI: Use kcalloc() in hsi_register_board_info() 2017-06-08 13:21:43 +02:00
hsi_core.c HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:00:54 +01:00
hsi_core.h
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00