mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
HID: Intel-thc-hid: Intel-thc: Add safety check for reading DMA buffer
[ Upstream commit a9a917998d ]
Add DMA buffer readiness check before reading DMA buffer to avoid
unexpected NULL pointer accessing.
Signed-off-by: Even Xu <even.xu@intel.com>
Tested-by: Rui Zhang <rui1.zhang@intel.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2124279f1f
commit
1e84a807c9
1 changed files with 5 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue