Skip to content

Commit

Permalink
[BRIDGE]: Remove SKB share checks in br_nf_pre_routing().
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Oct 15, 2007
1 parent 861d048 commit 9c2842b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bridge/br_netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,6 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb,
struct iphdr *iph;
__u32 len = nf_bridge_encap_header_len(skb);

if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
return NF_STOLEN;

if (unlikely(!pskb_may_pull(skb, len)))
goto out;

Expand Down

0 comments on commit 9c2842b

Please sign in to comment.