diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8a777932786d..e728980160d2 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -349,7 +349,7 @@ static struct rt6_info *rt6_select(struct rt6_info **head, int oif, | |||
349 | (strict & RT6_SELECT_F_REACHABLE) && | 349 | (strict & RT6_SELECT_F_REACHABLE) && |
350 | last && last != rt0) { | 350 | last && last != rt0) { |
351 | /* no entries matched; do round-robin */ | 351 | /* no entries matched; do round-robin */ |
352 | static spinlock_t lock = SPIN_LOCK_UNLOCKED; | 352 | static DEFINE_SPINLOCK(lock); |
353 | spin_lock(&lock); | 353 | spin_lock(&lock); |
354 | *head = rt0->u.next; | 354 | *head = rt0->u.next; |
355 | rt0->u.next = last->u.next; | 355 | rt0->u.next = last->u.next; |