]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[IPV4/IPV6] multicast: Check add_grhead() return value
authorAlexey Dobriyan <adobriyan@openvz.org>
Mon, 26 Feb 2007 00:31:58 +0000 (01:31 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 26 Feb 2007 00:31:58 +0000 (01:31 +0100)
commit666ebed8390d4cf3d0411163c6c2e0098e6a148e
tree6d72c2b8f2414cadc21dda5d3625f95c52ab6772
parent56f2853fef447fd3e0b4df202294fca58ecdfdc1
[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.

Adrian Bunk:
backported to 2.6.16

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