aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_netfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index db6176d96e71..bf9d6af9628a 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -357,7 +357,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
357 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev)) 357 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
358 goto free_skb; 358 goto free_skb;
359 359
360 if (!ip_route_output_key(&init_net, &rt, &fl)) { 360 if (!ip_route_output_key(dev_net(dev), &rt, &fl)) {
361 /* - Bridged-and-DNAT'ed traffic doesn't 361 /* - Bridged-and-DNAT'ed traffic doesn't
362 * require ip_forwarding. */ 362 * require ip_forwarding. */
363 if (((struct dst_entry *)rt)->dev == dev) { 363 if (((struct dst_entry *)rt)->dev == dev) {