diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-02-14 11:23:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-14 11:23:04 -0800 |
commit | 31d409373cca3517a30540b51f55dcb1f5af0d49 (patch) | |
tree | 4d8ab504330ca52a353774dfc748535ea520cdf6 /net | |
parent | 881ff67ad45041f6ff08441aa17302aea77bd054 (diff) | |
download | kernel_samsung_espresso10-31d409373cca3517a30540b51f55dcb1f5af0d49.zip kernel_samsung_espresso10-31d409373cca3517a30540b51f55dcb1f5af0d49.tar.gz kernel_samsung_espresso10-31d409373cca3517a30540b51f55dcb1f5af0d49.tar.bz2 |
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')
-rw-r--r-- | net/ipv4/fib_semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 146bd82..562f34c 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 |