PCI: hv: Fix interrupt cleanup path
authorCathy Avery <cavery@redhat.com>
Tue, 12 Jul 2016 15:31:24 +0000 (11:31 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Jul 2016 17:33:36 +0000 (12:33 -0500)
commit0c6e617f656ec259162a41c0849e3a7557c99d95
tree7c91e43d956e885237a602544bb33c2b04833911
parent837d741ea2e6bb23da9cad1667776fc6f0cb67dd
PCI: hv: Fix interrupt cleanup path

SR-IOV disabled from the host causes a memory leak.  pci-hyperv usually
first receives a PCI_EJECT notification and then proceeds to delete the
hpdev list entry in hv_eject_device_work().  Later in hv_msi_free() since
the device is no longer on the device list hpdev is NULL and hv_msi_free
returns without freeing int_desc as part of hv_int_desc_free().

Signed-off-by: Cathy Avery <cavery@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jake Oshins <jakeo@microsoft.com>
drivers/pci/host/pci-hyperv.c