igb_uio: fix unexpected removal for hot-unplug
authorJeff Guo <jia.guo@intel.com>
Thu, 18 Oct 2018 06:27:15 +0000 (14:27 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 00:11:22 +0000 (02:11 +0200)
commit70efa4116420b6f7a0734711dd603d3024366c79
tree2777d1be70c56c20bd29dc28ac9656afade9c0fd
parent88d0e47880ec729dac682be5e4242e13ffd7dcd2
igb_uio: fix unexpected removal for hot-unplug

When a device is hot-unplugged, pci_remove will be invoked unexpectedly
before pci_release, it will caused kernel hung issue which will throw the
error info of "Trying to free already-free IRQ XXX". And on the other hand,
if pci_remove before pci_release, the interrupt will not got chance to be
disabled. So this patch aim to fix this issue by adding pci_release call
in pci_remove, it will gurranty that all pci clean up will be done before
pci removal.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/igb_uio/igb_uio.c