PCI: hv: Fix a use-after-free bug in hv_eject_device_work()
authorDexuan Cui <decui@microsoft.com>
Fri, 21 Jun 2019 23:45:23 +0000 (23:45 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 5 Jul 2019 13:37:44 +0000 (14:37 +0100)
commit4df591b20b80cb77920953812d894db259d85bd7
tree03e33540229add958fa92c63264e48fbb1d052f1
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
PCI: hv: Fix a use-after-free bug in hv_eject_device_work()

Fix a use-after-free in hv_eject_device_work().

Fixes: 05f151a73ec2 ("PCI: hv: Fix a memory leak in hv_eject_device_work()")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Cc: stable@vger.kernel.org
drivers/pci/controller/pci-hyperv.c