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

USB: ohci-sm501: Add missed iounmap() in remove

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>

authored by

Chuhong Yuan and committed by
Greg Kroah-Hartman
07c112fb 03894573

+1
+1
drivers/usb/host/ohci-sm501.c
··· 191 191 struct resource *mem; 192 192 193 193 usb_remove_hcd(hcd); 194 + iounmap(hcd->regs); 194 195 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); 195 196 usb_put_hcd(hcd); 196 197 mem = platform_get_resource(pdev, IORESOURCE_MEM, 1);