android_kernel_xiaomi_sm8350/drivers/hid/intel-ish-hid
Jiasheng Jiang 97445814ef HID: intel_ish-hid: Add check for ishtp_dma_tx_map
[ Upstream commit b3d40c3ec3dc4ad78017de6c3a38979f57aaaab8 ]

As the kcalloc may return NULL pointer,
it should be better to check the ishtp_dma_tx_map
before use in order to avoid NULL pointer dereference.

Fixes: 3703f53b99 ("HID: intel_ish-hid: ISH Transport layer")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-06 07:52:35 +01:00
..
ipc
ishtp HID: intel_ish-hid: Add check for ishtp_dma_tx_map 2023-02-06 07:52:35 +01:00
ishtp-fw-loader.c
ishtp-hid-client.c
ishtp-hid.c
ishtp-hid.h
Kconfig
Makefile