out_free:
        reqsk_free(req);
 out_drop:
-       kfree_skb_reason(skb, reason);
+       sk_skb_reason_drop(sk, skb, reason);
        return NULL;
 }
 
                            enum skb_drop_reason reason)
 {
        sk_drops_add(sk, skb);
-       kfree_skb_reason(skb, reason);
+       sk_skb_reason_drop(sk, skb, reason);
 }
 
 /* This one checks to see if we can put data from the
 
 reset:
        tcp_v4_send_reset(rsk, skb, sk_rst_convert_drop_reason(reason));
 discard:
-       kfree_skb_reason(skb, reason);
+       sk_skb_reason_drop(sk, skb, reason);
        /* Be careful here. If this function gets more complicated and
         * gcc suffers from register pressure on the x86, sk (in %ebx)
         * might be destroyed here. This current version compiles correctly,
        int dif = inet_iif(skb);
        const struct iphdr *iph;
        const struct tcphdr *th;
+       struct sock *sk = NULL;
        bool refcounted;
-       struct sock *sk;
        int ret;
        u32 isn;
 
 discard_it:
        SKB_DR_OR(drop_reason, NOT_SPECIFIED);
        /* Discard frame. */
-       kfree_skb_reason(skb, drop_reason);
+       sk_skb_reason_drop(sk, skb, drop_reason);
        return 0;
 
 discard_and_relse:
 
 out_free:
        reqsk_free(req);
 out_drop:
-       kfree_skb_reason(skb, reason);
+       sk_skb_reason_drop(sk, skb, reason);
        return NULL;
 }
 
 discard:
        if (opt_skb)
                __kfree_skb(opt_skb);
-       kfree_skb_reason(skb, reason);
+       sk_skb_reason_drop(sk, skb, reason);
        return 0;
 csum_err:
        reason = SKB_DROP_REASON_TCP_CSUM;
        int dif = inet6_iif(skb);
        const struct tcphdr *th;
        const struct ipv6hdr *hdr;
+       struct sock *sk = NULL;
        bool refcounted;
-       struct sock *sk;
        int ret;
        u32 isn;
        struct net *net = dev_net(skb->dev);
 
 discard_it:
        SKB_DR_OR(drop_reason, NOT_SPECIFIED);
-       kfree_skb_reason(skb, drop_reason);
+       sk_skb_reason_drop(sk, skb, drop_reason);
        return 0;
 
 discard_and_relse: