mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() Currently if the allocation of skb fails and returns NULL then the
call to skb_put will cause a null pointer dereference. Fix this by
checking for a null skb and returning NULL. Note that calls to
function mt76x2_mcu_msg_alloc don't directly check the null return
but instead pass the NULL pointer to mt76x2_mcu_msg_send which
checks for the NULL and returns ENOMEM in this case.
Detected by CoverityScan, CID#1462624 ("Dereference null return value")
Fixes:
|
||
---|---|---|
.. | ||
debugfs.c | ||
dma.c | ||
dma.h | ||
eeprom.c | ||
Kconfig | ||
mac80211.c | ||
Makefile | ||
mmio.c | ||
mt76.h | ||
mt76x2.h | ||
mt76x2_core.c | ||
mt76x2_debugfs.c | ||
mt76x2_dfs.c | ||
mt76x2_dfs.h | ||
mt76x2_dma.c | ||
mt76x2_dma.h | ||
mt76x2_eeprom.c | ||
mt76x2_eeprom.h | ||
mt76x2_init.c | ||
mt76x2_mac.c | ||
mt76x2_mac.h | ||
mt76x2_main.c | ||
mt76x2_mcu.c | ||
mt76x2_mcu.h | ||
mt76x2_pci.c | ||
mt76x2_phy.c | ||
mt76x2_regs.h | ||
mt76x2_trace.c | ||
mt76x2_trace.h | ||
mt76x2_tx.c | ||
trace.c | ||
trace.h | ||
tx.c | ||
util.c | ||
util.h |