Skip to content

Commit 31d4093

Browse files
Eric Dumazetdavem330
authored andcommitted
ipv4: fix rcu lock imbalance in fib_select_default()
Commit 0c838ff (ipv4: Consolidate all default route selection implementations.) forgot to remove one rcu_read_unlock() from fib_select_default(). Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 881ff67 commit 31d4093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/fib_semantics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ void fib_select_default(struct fib_result *res)
11891189
fib_result_assign(res, last_resort);
11901190
tb->tb_default = last_idx;
11911191
out:
1192-
rcu_read_unlock();
1192+
return;
11931193
}
11941194

11951195
#ifdef CONFIG_IP_ROUTE_MULTIPATH

0 commit comments

Comments
 (0)