summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2020-06-10 05:48:44 +0300
committerSasha Levin <sashal@kernel.org>2020-07-01 06:17:07 +0300
commitb9baada66bedabfd63cbaa8cf6aa6172bab922e1 (patch)
tree69dd49cb38a3e4843736eb04dbe4aef8f8197301 /drivers/usb
parentb11d1c71912b1f3e4474e1b231a2d21d2b9e3a27 (diff)
downloadlinux-b9baada66bedabfd63cbaa8cf6aa6172bab922e1.tar.xz
USB: ohci-sm501: Add missed iounmap() in remove
commit 07c112fb09c86c0231f6ff0061a000ffe91c8eb9 upstream. This driver misses calling iounmap() in remove to undo the ioremap() called in probe. Add the missed call to fix it. Fixes: f54aab6ebcec ("usb: ohci-sm501 driver") Cc: stable <stable@vger.kernel.org> Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20200610024844.3628408-1-hslester96@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ohci-sm501.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c
index c9233cddf9a2..0a39dc58f376 100644
--- a/drivers/usb/host/ohci-sm501.c
+++ b/drivers/usb/host/ohci-sm501.c
@@ -196,6 +196,7 @@ static int ohci_hcd_sm501_drv_remove(struct platform_device *pdev)
struct resource *mem;
usb_remove_hcd(hcd);
+ iounmap(hcd->regs);
release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
usb_put_hcd(hcd);
dma_release_declared_memory(&pdev->dev);