Commit 31d40937 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv4: fix rcu lock imbalance in fib_select_default()

Commit 0c838ff1 (ipv4: Consolidate all default route selection
implementations.) forgot to remove one rcu_read_unlock() from
fib_select_default().
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 881ff67a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment