packet: Fix leak in pre-defrag support.
authorDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2011 14:30:59 +0000 (07:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2011 14:30:59 +0000 (07:30 -0700)
commitaec27311c23a8ce8eaf490762249d3ed74be83b6
tree51a789724f43439d5aff9ddc4d87cd4d00397489
parentdc7f9f6e8838556f226c2ebd1da7bb305cb25654
packet: Fix leak in pre-defrag support.

When we clone the SKB, we forget about the original
one.  Avoid this problem by using skb_share_check().

Reported-by: Penttilä Mika <mika.penttila@ixonos.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c