]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: hv: Remove the bogus test in hv_eject_device_work()
authorDexuan Cui <decui@microsoft.com>
Fri, 8 Jun 2018 18:39:10 +0000 (15:39 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commitf2db6a6e011738c7a9f905017c9c1717d5ea5451
tree9c71a81efa659bc4a78a9caaf3f737daca55a8b0
parentca038b7fbc369f3933784758183e7d3dfe5679d2
PCI: hv: Remove the bogus test in hv_eject_device_work()

BugLink: http://bugs.launchpad.net/bugs/1758378
When kernel is executing hv_eject_device_work(), hpdev->state value must
be hv_pcichild_ejecting; any other value would consist in a bug,
therefore replace the bogus check with an explicit WARN_ON() on the
condition failure detection.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Jack Morgenstein <jackm@mellanox.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
(cherry picked from commit fca288c0153b2b97114b9081bc3c33c3735145b6)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/pci/host/pci-hyperv.c