net: Pass net into dst_output and remove dst_output_okfn
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / raw.c
index 5aa4613027167797c81301f66850197930d2f87c..dc65ec198f7c3f7ae19176fdaa8752c7fb4e13a5 100644 (file)
@@ -654,7 +654,7 @@ static int rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length,
                goto error_fault;
 
        IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len);
-       err = NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT, sk, skb,
+       err = NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, sk, skb,
                      NULL, rt->dst.dev, dst_output);
        if (err > 0)
                err = net_xmit_errno(err);