hv: vpci: a minor fix about is_zombie_vf

Now we check whether a device is zombie by the ->user != NULL.

Tracked-On: #4550
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2020-06-19 16:04:09 +08:00
committed by wenlingz
parent cfad047bd0
commit 82f9233d4a
3 changed files with 15 additions and 13 deletions

View File

@@ -137,7 +137,7 @@ struct pci_vdev {
* user | vdev in HV | vdev in pre-VM | vdev in SOS | vdev in post-VM | vdev in post-VM
*/
struct pci_vdev *parent_user;
struct pci_vdev *user;
struct pci_vdev *user; /* NULL means this device is not used or is a zombie VF */
struct hlist_node link;
};