aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_semantics.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-02-14 14:23:04 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-14 14:23:04 -0500
commit31d409373cca3517a30540b51f55dcb1f5af0d49 (patch)
tree4d8ab504330ca52a353774dfc748535ea520cdf6 /net/ipv4/fib_semantics.c
parent881ff67ad45041f6ff08441aa17302aea77bd054 (diff)
ipv4: fix rcu lock imbalance in fib_select_default()
Commit 0c838ff1ade7 (ipv4: Consolidate all default route selection implementations.) forgot to remove one rcu_read_unlock() from fib_select_default(). Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r--net/ipv4/fib_semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 146bd82ef60d..562f34cd9303 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -1189,7 +1189,7 @@ void fib_select_default(struct fib_result *res)
1189 fib_result_assign(res, last_resort); 1189 fib_result_assign(res, last_resort);
1190 tb->tb_default = last_idx; 1190 tb->tb_default = last_idx;
1191out: 1191out:
1192 rcu_read_unlock(); 1192 return;
1193} 1193}
1194 1194
1195#ifdef CONFIG_IP_ROUTE_MULTIPATH 1195#ifdef CONFIG_IP_ROUTE_MULTIPATH