diff options
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r-- | net/ipv4/fib_semantics.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index ec9b0dde9f9c..bbd4a247b195 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -346,7 +346,7 @@ struct fib_alias *fib_find_alias(struct list_head *fah, u8 tos, u32 prio) | |||
346 | } | 346 | } |
347 | 347 | ||
348 | int fib_detect_death(struct fib_info *fi, int order, | 348 | int fib_detect_death(struct fib_info *fi, int order, |
349 | struct fib_info **last_resort, int *last_idx, int *dflt) | 349 | struct fib_info **last_resort, int *last_idx, int dflt) |
350 | { | 350 | { |
351 | struct neighbour *n; | 351 | struct neighbour *n; |
352 | int state = NUD_NONE; | 352 | int state = NUD_NONE; |
@@ -358,10 +358,10 @@ int fib_detect_death(struct fib_info *fi, int order, | |||
358 | } | 358 | } |
359 | if (state==NUD_REACHABLE) | 359 | if (state==NUD_REACHABLE) |
360 | return 0; | 360 | return 0; |
361 | if ((state&NUD_VALID) && order != *dflt) | 361 | if ((state&NUD_VALID) && order != dflt) |
362 | return 0; | 362 | return 0; |
363 | if ((state&NUD_VALID) || | 363 | if ((state&NUD_VALID) || |
364 | (*last_idx<0 && order > *dflt)) { | 364 | (*last_idx<0 && order > dflt)) { |
365 | *last_resort = fi; | 365 | *last_resort = fi; |
366 | *last_idx = order; | 366 | *last_idx = order; |
367 | } | 367 | } |