ipv4: Remove leftover rcu_read_unlock calls from __mkroute_output()
authorDimitris Michailidis <dm@chelsio.com>
Thu, 7 Oct 2010 14:48:38 +0000 (14:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2010 17:51:08 +0000 (10:51 -0700)
commit8391d07b80e8da957cd888870e23f8e218438622
tree8baab40bff5649b1f777af590f77a79a549b0491
parent993284dfff3ba4643f08b592427d0ac758d30156
ipv4: Remove leftover rcu_read_unlock calls from __mkroute_output()

Commit "fib: RCU conversion of fib_lookup()" removed rcu_read_lock() from
__mkroute_output but left a couple of calls to rcu_read_unlock() in there.
This causes lockdep to complain that the rcu_read_unlock() call in
__ip_route_output_key causes a lock inbalance and quickly crashes the
kernel. The below fixes this for me.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c