RDMA/nes: Fix test of uninitialized netdev
Commit 1765a57533
("net: make dev->master general") introduced a
test of an uninitialized netdev. Fix the code so the intended netdev
is tested.
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
6c51038900
commit
cf55bb2439
@ -1116,7 +1116,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (netif_is_bond_slave(netdev))
|
||||
if (netif_is_bond_slave(nesvnic->netdev))
|
||||
netdev = nesvnic->netdev->master;
|
||||
else
|
||||
netdev = nesvnic->netdev;
|
||||
|
Loading…
Reference in New Issue
Block a user