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>
Fri, 26 Jul 2019 07:14:26 +0000 (09:14 +0200)
commit4d8504004c864dfb98b6fa691c47da1d9714d4bd
tree243694a31ae987f29dcd0582346c8b17c9329907
parentf0ff76a42ef596beb885160c022c57afae7a2896
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/controller/pci-hyperv.c