diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 6da9f38ef5c1..4f76e5552d8e 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -372,8 +372,7 @@ static int packet_rcv_spkt(struct sk_buff *skb, struct net_device *dev, struct | |||
372 | goto oom; | 372 | goto oom; |
373 | 373 | ||
374 | /* drop any routing info */ | 374 | /* drop any routing info */ |
375 | dst_release(skb->dst); | 375 | skb_dst_drop(skb); |
376 | skb->dst = NULL; | ||
377 | 376 | ||
378 | /* drop conntrack reference */ | 377 | /* drop conntrack reference */ |
379 | nf_reset(skb); | 378 | nf_reset(skb); |
@@ -621,8 +620,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet | |||
621 | 620 | ||
622 | skb_set_owner_r(skb, sk); | 621 | skb_set_owner_r(skb, sk); |
623 | skb->dev = NULL; | 622 | skb->dev = NULL; |
624 | dst_release(skb->dst); | 623 | skb_dst_drop(skb); |
625 | skb->dst = NULL; | ||
626 | 624 | ||
627 | /* drop conntrack reference */ | 625 | /* drop conntrack reference */ |
628 | nf_reset(skb); | 626 | nf_reset(skb); |