Thread (1 message) 1 message, 1 author, 2015-04-15

Re: [PATCH net-next 3/6] net: hip04: Solve the problem of the skb memory allocation failure

From: Arnd Bergmann <hidden>
Date: 2015-04-15 14:17:31
Also in: linux-arm-kernel, linux-devicetree

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 <redacted>
Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
Cc: Eric Dumazet <redacted>
Cc: Arnd Bergmann <redacted>
Cc: Zhangfei Gao <redacted>
Cc: Dan Carpenter <redacted>
Cc: Joe Perches <redacted>
Looks reasonable to me, though I haven't done a deep analysis
to see if there are remaining problems in this area.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help