Skip to content

Commit

Permalink
RDMA/nes: Fix test of uninitialized netdev
Browse files Browse the repository at this point in the history
Commit 1765a57 ("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>
  • Loading branch information
Roland Dreier committed Mar 25, 2011
1 parent 6c51038 commit cf55bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/nes/nes_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf55bb2

Please sign in to comment.