[1/1] mt7601u: check return value of alloc_skb

Kalle Valo kvalo at codeaurora.org
Wed Apr 26 05:03:05 EDT 2017


Pan Bian <bianpan2016 at 163.com> wrote:
> Function alloc_skb() will return a NULL pointer if there is no enough
> memory. However, in function mt7601u_mcu_msg_alloc(), its return value
> is not validated before it is used. This patch fixes it.
> 
> Signed-off-by: Pan Bian <bianpan2016 at 163.com>
> Acked-by: Jakub Kicinski <kubakici at wp.pl>

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

5fb01e91daf8 mt7601u: check return value of alloc_skb

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

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




More information about the linux-arm-kernel mailing list