linux/drivers/net/wireless/mediatek/mt7601u
Colin Ian King 2b02a36d12 mt7601u: do not free dma_buf when ivp allocation fails
If the allocation of ivp fails the error handling attempts to
free an uninitialized dma_buf; this data structure just contains
garbage on the stack, so the freeing will cause issues when the
urb, buf and dma fields are free'd. Fix this by not free'ing the
dma_buf if the ivp allocation fails.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-03-07 14:39:05 +02:00
..
core.c
debugfs.c
dma.c mt7601u: lock out rx path and tx status reporting 2015-08-10 22:19:35 +03:00
dma.h
eeprom.c mt7601u: don't warn about devices without per-rate power table 2015-06-15 12:49:35 +03:00
eeprom.h
init.c mt7601u: lock out rx path and tx status reporting 2015-08-10 22:19:35 +03:00
initvals_phy.h
initvals.h
Kconfig
mac.c mt7601u: lock out rx path and tx status reporting 2015-08-10 22:19:35 +03:00
mac.h
main.c mac80211: pass block ack session timeout to to driver 2016-01-14 11:13:17 +01:00
Makefile
mcu.c mt7601u: do not free dma_buf when ivp allocation fails 2016-03-07 14:39:05 +02:00
mcu.h
mt7601u.h mt7601u: lock out rx path and tx status reporting 2015-08-10 22:19:35 +03:00
phy.c
regs.h
trace.c
trace.h
tx.c mt7601u: lock out rx path and tx status reporting 2015-08-10 22:19:35 +03:00
usb.c mt7601u: fix dma from stack address 2015-08-10 22:19:31 +03:00
usb.h mt7601u: fix dma from stack address 2015-08-10 22:19:31 +03:00
util.c
util.h