diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 07bacff84aa4..069d51d29414 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -94,7 +94,7 @@ loop: | |||
94 | * But we do not have state "obsoleted, but | 94 | * But we do not have state "obsoleted, but |
95 | * referenced by parent", so it is right. | 95 | * referenced by parent", so it is right. |
96 | */ | 96 | */ |
97 | if (dst->obsolete > 1) | 97 | if (dst->obsolete > 0) |
98 | continue; | 98 | continue; |
99 | 99 | ||
100 | ___dst_free(dst); | 100 | ___dst_free(dst); |
@@ -202,7 +202,7 @@ static void ___dst_free(struct dst_entry *dst) | |||
202 | */ | 202 | */ |
203 | if (dst->dev == NULL || !(dst->dev->flags&IFF_UP)) | 203 | if (dst->dev == NULL || !(dst->dev->flags&IFF_UP)) |
204 | dst->input = dst->output = dst_discard; | 204 | dst->input = dst->output = dst_discard; |
205 | dst->obsolete = 2; | 205 | dst->obsolete = DST_OBSOLETE_DEAD; |
206 | } | 206 | } |
207 | 207 | ||
208 | void __dst_free(struct dst_entry *dst) | 208 | void __dst_free(struct dst_entry *dst) |