From: Eric Dumazet Date: Mon, 14 Feb 2011 19:23:04 +0000 (-0800) Subject: ipv4: fix rcu lock imbalance in fib_select_default() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31d409373cca3517a30540b51f55dcb1f5af0d49;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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