]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix allocation failure handling in multicast
authorAlexey Dobriyan <adobriyan@openvz.org>
Wed, 7 Feb 2007 05:58:27 +0000 (21:58 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:20 +0000 (10:50 -0800)
commitc8d8a5e0f09db90f9ce46edd6c5601335d0f21ff
tree2d3ded00a762b5fd4043b0b9d1197125fdb62dac
parentc1689102c93ed8754c2c1c09139e90c10f59683a
Fix allocation failure handling in multicast

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/igmp.c
net/ipv6/mcast.c