summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorBrian Russell <brian.russell@brocade.com>2015-03-19 17:55:26 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-20 13:18:16 +0100
commita087146c72bad795bcab80e5987c5b80fa225000 (patch)
treec39771b658ac6befec0ab6ca552c6ad533d03ea9 /kernel/module.c
parent03b225b16d75bccf9bc4d82607964a08148adf61 (diff)
downloadop-kernel-dev-a087146c72bad795bcab80e5987c5b80fa225000.zip
op-kernel-dev-a087146c72bad795bcab80e5987c5b80fa225000.tar.gz
uio: Request/free irq separate from dev lifecycle
Separate irq request/free from the device lifecycle. After device unregister the parent module can call pci_disable_msi. >From the PCI MSI how to: "Before calling this function, a device driver must always call free_irq() on any interrupt for which it previously called request_irq(). Failure to do so results in a BUG_ON(), leaving the device with MSI enabled and thus leaking its vector." So we need to separately free the irq at unregister to allow the device to be kept around in the case of it still having open FDs. Signed-off-by: Brian Russell <brussell@brocade.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud