Skip to content

Commit 0e58156

Browse files
edumazetdavem330
authored andcommitted
tipc: remove rcu_read_unlock() left in tipc_udp_recv()
I forgot to remove one rcu_read_unlock() before a return statement. Joy of mixing goto and return styles in a function :) Fixes: 4109a2c ("tipc: tipc_udp_recv() cleanup vs rcu verbs") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8c90b79 commit 0e58156

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/tipc/udp_media.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ static int tipc_udp_recv(struct sock *sk, struct sk_buff *skb)
360360

361361
if (b && test_bit(0, &b->up)) {
362362
tipc_rcv(sock_net(sk), skb, b);
363-
rcu_read_unlock();
364363
return 0;
365364
}
366365

0 commit comments

Comments
 (0)