summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_semantics.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-02-14 20:23:04 +0100
committerDavid S. Miller <davem@davemloft.net>2011-02-14 20:23:04 +0100
commit31d409373cca3517a30540b51f55dcb1f5af0d49 (patch)
tree4d8ab504330ca52a353774dfc748535ea520cdf6 /net/ipv4/fib_semantics.c
parentcan: c_can: Added support for Bosch C_CAN controller (diff)
downloadlinux-31d409373cca3517a30540b51f55dcb1f5af0d49.tar.xz
linux-31d409373cca3517a30540b51f55dcb1f5af0d49.zip
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)
fib_result_assign(res, last_resort);
tb->tb_default = last_idx;
out:
- rcu_read_unlock();
+ return;
}
#ifdef CONFIG_IP_ROUTE_MULTIPATH