mirror of https://gitee.com/openkylin/linux.git
b3b2f62c62
Check memory allocation failure and return -ENOMEM in such a case, as already done a few lines below. As 'dev->tx_q' can be NULL, we also need to check for that in 'mt7601u_free_tx()', and return early. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Jakub Kicinski <kubakici@wp.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
core.c | ||
debugfs.c | ||
dma.c | ||
dma.h | ||
eeprom.c | ||
eeprom.h | ||
init.c | ||
initvals.h | ||
initvals_phy.h | ||
mac.c | ||
mac.h | ||
main.c | ||
mcu.c | ||
mcu.h | ||
mt7601u.h | ||
phy.c | ||
regs.h | ||
trace.c | ||
trace.h | ||
tx.c | ||
usb.c | ||
usb.h | ||
util.c |