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

From: Kalle Valo
Date: Mon Mar 07 2016 - 07:40:09 EST



> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>
> Reviewed-by: Julian Calaby <julian.calaby@xxxxxxxxx>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo