mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 03:31:25 +00:00
RDMA/nes: Fix test of uninitialized netdev
Commit 1765a575334f ("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;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netif_is_bond_slave(netdev))
|
if (netif_is_bond_slave(nesvnic->netdev))
|
||||||
netdev = nesvnic->netdev->master;
|
netdev = nesvnic->netdev->master;
|
||||||
else
|
else
|
||||||
netdev = nesvnic->netdev;
|
netdev = nesvnic->netdev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user