Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uio: uio_aec: Use pci_iounmap instead of iounmap

'pci_iomap()' is used in the probe and 'pci_iounmap()' in the error
handling path of the probe.
So keep things consistent and use 'pci_iounmap()' also in the remove
function.

Fixes: 1bafeb378e91 ("uio: add the uio_aec driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f6b2a09a45658e8ef552aa34f0b8615dc1c35838.1620546705.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christophe JAILLET and committed by
Greg Kroah-Hartman
dccdb2fc 17e336db

+1 -1
+1 -1
drivers/uio/uio_aec.c
··· 133 133 uio_unregister_device(info); 134 134 pci_release_regions(pdev); 135 135 pci_disable_device(pdev); 136 - iounmap(info->priv); 136 + pci_iounmap(pdev, info->priv); 137 137 } 138 138 139 139 static struct pci_driver pci_driver = {