diff options
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 7e3e7329dacf..d28261826bc2 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -153,7 +153,7 @@ static void fib_flush(struct net *net) | |||
153 | * Find the first device with a given source address. | 153 | * Find the first device with a given source address. |
154 | */ | 154 | */ |
155 | 155 | ||
156 | struct net_device * ip_dev_find(__be32 addr) | 156 | struct net_device * ip_dev_find(struct net *net, __be32 addr) |
157 | { | 157 | { |
158 | struct flowi fl = { .nl_u = { .ip4_u = { .daddr = addr } } }; | 158 | struct flowi fl = { .nl_u = { .ip4_u = { .daddr = addr } } }; |
159 | struct fib_result res; | 159 | struct fib_result res; |
@@ -164,7 +164,7 @@ struct net_device * ip_dev_find(__be32 addr) | |||
164 | res.r = NULL; | 164 | res.r = NULL; |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | local_table = fib_get_table(&init_net, RT_TABLE_LOCAL); | 167 | local_table = fib_get_table(net, RT_TABLE_LOCAL); |
168 | if (!local_table || local_table->tb_lookup(local_table, &fl, &res)) | 168 | if (!local_table || local_table->tb_lookup(local_table, &fl, &res)) |
169 | return NULL; | 169 | return NULL; |
170 | if (res.type != RTN_LOCAL) | 170 | if (res.type != RTN_LOCAL) |