af_packet: remove unnecessary BUG_ON() in tpacket_destruct_skb
authordanborkmann@iogearbox.net <danborkmann@iogearbox.net>
Mon, 10 Oct 2011 06:52:46 +0000 (06:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Oct 2011 18:09:08 +0000 (14:09 -0400)
commit95f5f803b3897f622c4b5f72d554874faf74df12
tree7241563ed75f0ee7443df99bbbb304c0a870496a
parent5bdc4f5de1345c221f5b51d73fafe3e5de718a54
af_packet: remove unnecessary BUG_ON() in tpacket_destruct_skb

If skb is NULL, then stack trace is thrown anyway on dereference.
Therefore, the stack trace triggered by BUG_ON is duplicate.

Signed-off-by: Daniel Borkmann <danborkmann@googlemail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c