diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2016-08-15 18:48:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-15 23:48:07 +0300 |
commit | 0dbff144a1e7310e2f8b7a957352c4be9aeb38e4 (patch) | |
tree | 36d570194ed048759541d5bf07b35a79f352e5e7 /fs/ufs/ufs.h | |
parent | 0f20d795f78d182c4b743d880a5e8dc4d39892fe (diff) | |
download | linux-0dbff144a1e7310e2f8b7a957352c4be9aeb38e4.tar.xz |
hv_netvsc: fix bonding devices check in netvsc_netdev_event()
Bonding driver sets IFF_BONDING on both master (the bonding device) and
slave (the real NIC) devices and in netvsc_netdev_event() we want to skip
master devices only. Currently, there is an uncertainty when a slave
interface is removed: if bonding module comes first in netdev_chain it
clears IFF_BONDING flag on the netdev and netvsc_netdev_event() correctly
handles NETDEV_UNREGISTER event, but in case netvsc comes first on the
chain it sees the device with IFF_BONDING still attached and skips it. As
we still hold vf_netdev pointer to the device we crash on the next inject.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/ufs/ufs.h')
0 files changed, 0 insertions, 0 deletions