]> err.no Git - linux-2.6/commit
[IPV4/IPV6] multicast: Check add_grhead() return value
authorAlexey Dobriyan <adobriyan@openvz.org>
Tue, 6 Feb 2007 22:35:25 +0000 (14:35 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 8 Feb 2007 20:39:04 +0000 (12:39 -0800)
commitcc63f70b8b410eb653449151821f6b8b9af6ca42
treeb78fb82523f1ed05c6e0a3547021ba213aa2d3b6
parentf2f2102d1a1dbc83b5b37b6596cd8374120cbe16
[IPV4/IPV6] multicast: Check add_grhead() return value

add_grhead() allocates memory with GFP_ATOMIC and in at least two places skb
from it passed to skb_put() without checking.

Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c
net/ipv6/mcast.c