Thread (5 messages) 5 messages, 4 authors, 2016-03-07

Re: [V3] mt7601u: do not free dma_buf when ivp allocation fails

From: Kalle Valo <hidden>
Date: 2016-03-07 12:39:54
Also in: linux-arm-kernel, linux-mediatek

From: Colin Ian King <redacted>

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 <redacted>
Reviewed-by: Julian Calaby <redacted>
Thanks, applied to wireless-drivers-next.git.

Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help