OpenCloudOS-Kernel/drivers/hsi
Chengfeng Ye a1ee1c08fc HSI: core: Fix return freed object in hsi_new_client
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>
2021-11-26 00:27:06 +01:00
..
clients HSI changes for the 5.16 series 2021-11-04 13:56:55 -07:00
controllers HSI: Fix PM usage counter unbalance in ssi_hw_init 2020-12-29 23:57:06 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 2021-11-26 00:27:06 +01:00
hsi_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00