Jiasheng Jiang 53ffa6a9f8 HID: amd_sfh: Add missing check for dma_alloc_coherent
Add check for the return value of the dma_alloc_coherent since
it may return NULL pointer if allocation fails.

Fixes: 4b2c53d93a4b ("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
2022-12-20 09:45:53 +01:00
..
2022-12-13 10:54:19 -08:00
2022-12-13 12:44:40 -08:00
2022-10-12 10:23:24 -07:00
2022-12-13 10:43:59 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 16:39:38 -08:00
2022-12-08 13:03:47 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 12:54:31 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 13:38:17 -08:00
2022-12-13 13:09:38 -08:00
2022-12-13 11:27:26 -08:00
2022-12-13 13:20:36 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 13:20:36 -08:00
2022-12-13 09:05:19 -08:00
2022-12-07 17:50:44 +01:00
2022-10-09 14:05:15 -07:00
2022-12-12 13:38:17 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 12:32:07 -08:00
2022-12-13 09:05:19 -08:00
2022-12-13 10:43:59 -08:00
2022-12-12 10:17:08 -08:00
2022-12-13 13:13:55 -08:00
2022-12-13 10:43:59 -08:00
2022-12-12 15:19:38 -08:00
2022-12-13 11:36:58 -08:00
2022-12-13 12:49:59 -08:00
2022-12-13 12:49:59 -08:00
2022-12-13 09:05:19 -08:00
2022-12-13 10:54:19 -08:00
2022-12-13 12:54:31 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 10:17:08 -08:00
2022-12-12 09:01:36 -08:00
2022-12-13 10:43:59 -08:00
2022-10-10 14:02:53 -07:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00