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

Jakub Kicinski kubakici at wp.pl
Sun Apr 23 20:49:43 PDT 2017


On Sun, 23 Apr 2017 15:00:23 +0800, Pan Bian 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>

Thanks!



More information about the linux-arm-kernel mailing list