OpenCloudOS-Kernel/drivers/net/wireless/mediatek
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
..
mt7601u mt7601u: do not free dma_buf when ivp allocation fails 2016-03-07 14:39:05 +02:00
Kconfig mediatek: unify Kconfig with other vendors 2015-11-18 14:28:31 +02:00
Makefile add mt7601u driver 2015-05-28 11:33:20 +03:00