Skip to content

Commit

Permalink
uio: uio_aec: Use pci_iounmap instead of iounmap
Browse files Browse the repository at this point in the history
'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: 1bafeb3 ("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>
  • Loading branch information
Christophe JAILLET authored and Greg Kroah-Hartman committed May 14, 2021
1 parent 17e336d commit dccdb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/uio/uio_aec.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void remove(struct pci_dev *pdev)
uio_unregister_device(info);
pci_release_regions(pdev);
pci_disable_device(pdev);
iounmap(info->priv);
pci_iounmap(pdev, info->priv);
}

static struct pci_driver pci_driver = {
Expand Down

0 comments on commit dccdb2f

Please sign in to comment.