netfilter: propagate net to nf_bridge_get_physindev
[platform/kernel/linux-starfive.git] / net / ipv4 / netfilter / nf_reject_ipv4.c
index f33aeab..297000b 100644 (file)
@@ -289,7 +289,7 @@ void nf_send_reset(struct net *net, struct sock *sk, struct sk_buff *oldskb,
         * build the eth header using the original destination's MAC as the
         * source, and send the RST packet directly.
         */
-       br_indev = nf_bridge_get_physindev(oldskb);
+       br_indev = nf_bridge_get_physindev(oldskb, net);
        if (br_indev) {
                struct ethhdr *oeth = eth_hdr(oldskb);