[v2] mt7601u: check memory allocation failure

Kalle Valo kvalo at codeaurora.org
Thu Aug 24 02:55:46 PDT 2017


Christophe Jaillet <christophe.jaillet at wanadoo.fr> wrote:

> 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 at wanadoo.fr>
> Acked-by: Jakub Kicinski <kubakici at wp.pl>

Patch applied to wireless-drivers-next.git, thanks.

b3b2f62c6238 mt7601u: check memory allocation failure

-- 
https://patchwork.kernel.org/patch/9913855/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches




More information about the Linux-mediatek mailing list