diff options
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index 183f7ab120d..271279cccad 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c | |||
@@ -1363,8 +1363,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi | |||
1363 | if (!memcmp(nesadapter->arp_table[arpindex].mac_addr, | 1363 | if (!memcmp(nesadapter->arp_table[arpindex].mac_addr, |
1364 | neigh->ha, ETH_ALEN)) { | 1364 | neigh->ha, ETH_ALEN)) { |
1365 | /* Mac address same as in nes_arp_table */ | 1365 | /* Mac address same as in nes_arp_table */ |
1366 | ip_rt_put(rt); | 1366 | goto out; |
1367 | return rc; | ||
1368 | } | 1367 | } |
1369 | 1368 | ||
1370 | nes_manage_arp_cache(nesvnic->netdev, | 1369 | nes_manage_arp_cache(nesvnic->netdev, |
@@ -1380,6 +1379,8 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi | |||
1380 | neigh_event_send(neigh, NULL); | 1379 | neigh_event_send(neigh, NULL); |
1381 | } | 1380 | } |
1382 | } | 1381 | } |
1382 | |||
1383 | out: | ||
1383 | rcu_read_unlock(); | 1384 | rcu_read_unlock(); |
1384 | ip_rt_put(rt); | 1385 | ip_rt_put(rt); |
1385 | return rc; | 1386 | return rc; |