netfilter: netns ebtables: br_nf_pre_routing_finish() fixup
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 4 Nov 2008 13:31:29 +0000 (14:31 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 4 Nov 2008 13:31:29 +0000 (14:31 +0100)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/bridge/br_netfilter.c

index db6176d96e7140253ce092567376677124b902cc..bf9d6af9628aee6eb895eb94b1aca3673ccc0754 100644 (file)
@@ -357,7 +357,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
                        if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
                                goto free_skb;
 
-                       if (!ip_route_output_key(&init_net, &rt, &fl)) {
+                       if (!ip_route_output_key(dev_net(dev), &rt, &fl)) {
                                /* - Bridged-and-DNAT'ed traffic doesn't
                                 *   require ip_forwarding. */
                                if (((struct dst_entry *)rt)->dev == dev) {