[PATCH net-next 3/6] net: hip04: Solve the problem of the skb memory allocation failure
Arnd Bergmann
arnd at arndb.de
Wed Apr 15 07:17:31 PDT 2015
On Wednesday 15 April 2015 20:30:05 Ding Tianhong wrote:
> The driver will alloc some skb buffer for hareware queue, but without
> considering the case of memory allocation failure, when memory is low,
> the skb may be null and panic the system, so break the loop when skb is
> null and try to alloc the memory again to fix this problem.
>
> Signed-off-by: Ding Tianhong <dingtianhong at huawei.com>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Eric Dumazet <eric.dumazet at gmail.com>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Zhangfei Gao <zhangfei.gao at linaro.org>
> Cc: Dan Carpenter <dan.carpenter at oracle.com>
> Cc: Joe Perches <joe at perches.com>
>
Looks reasonable to me, though I haven't done a deep analysis
to see if there are remaining problems in this area.
Arnd
More information about the linux-arm-kernel
mailing list