linux-stable/drivers/hid/amd-sfh-hid
Jiasheng Jiang 677766555e HID: amd_sfh: Add missing check for dma_alloc_coherent
[ Upstream commit 53ffa6a9f8 ]

Add check for the return value of the dma_alloc_coherent since
it may return NULL pointer if allocation fails.

Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221220024921.21992-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:40 +01:00
..
hid_descriptor HID: amd_sfh: Add descriptor operations in amd_mp2_ops 2022-07-21 13:43:58 +02:00
sfh1_1 HID: amd_sfh: Handle condition of "no sensors" for SFH1.1 2022-10-21 12:38:53 +02:00
amd_sfh_client.c HID: amd_sfh: Add missing check for dma_alloc_coherent 2022-12-31 13:26:40 +01:00
amd_sfh_common.h HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00
amd_sfh_hid.c HID: amd_sfh: Add NULL check for hid device 2022-07-21 13:43:58 +02:00
amd_sfh_hid.h HID: amd_sfh: Add descriptor operations in amd_mp2_ops 2022-07-21 13:43:58 +02:00
amd_sfh_pcie.c HID: AMD_SFH: Add a DMI quirk entry for Chromebooks 2022-08-25 11:42:54 +02:00
amd_sfh_pcie.h HID: amd_sfh: Move global functions to static 2022-07-21 13:43:59 +02:00
Kconfig
Makefile HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00