@@ -1510,7 +1510,6 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, netdev);
- rcu_read_lock();
if (neigh) {
if (neigh->nud_state & NUD_VALID) {
nes_debug(NES_DBG_CM, "Neighbor MAC address for 0x%08X"
@@ -1535,12 +1534,9 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
} else {
neigh_event_send(neigh, NULL);
}
- }
out:
- rcu_read_unlock();
-
- if (neigh)
neigh_release(neigh);
+ }
ip_rt_put(rt);
return rc;