macvlan: fix a possible use after free
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 23 Jan 2012 05:38:59 +0000 (05:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2012 18:56:18 +0000 (13:56 -0500)
commit4ec7ac1203bcf21f5e3d977c9818b1a56c9ef40d
treefe3b40dad3483772426a1456adf9b75692e8056f
parentf80400a26a2e8bff541de12834a1134358bb6642
macvlan: fix a possible use after free

Commit bc416d9768 (macvlan: handle fragmented multicast frames) added a
possible use after free in macvlan_handle_frame(), since
ip_check_defrag() uses pskb_may_pull() : skb header can be reallocated.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c