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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:41 +0000 (07:28 +0200)
commit467e5c8ec8134f450f86dcf15847b942b1a9a083
tree671f08b00a25663066b210698bf8c0b8c27e7e98
parent3ee5a2fb29de0be33bc7391d67092719a7e6586f
PCI: hv: Fix a use-after-free bug in hv_eject_device_work()

commit 4df591b20b80cb77920953812d894db259d85bd7 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/pci-hyperv.c