mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Handle memory allocation failure from nci_skb_alloc() (calling
alloc_skb()) to avoid possible NULL pointer dereference.
Reported-by: 黄思聪 <[email protected]>
Fixes: 391d8a2da7 ("NFC: Add NCI over SPI receive")
Cc: <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>