lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 23/78] USB: ohci-sm501: Add missed iounmap() in remove
    Date
    From: Chuhong Yuan <hslester96@gmail.com>

    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>
    ---
    drivers/usb/host/ohci-sm501.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c
    index d4e0f7cd96fa4..b5592fb518e35 100644
    --- a/drivers/usb/host/ohci-sm501.c
    +++ b/drivers/usb/host/ohci-sm501.c
    @@ -195,6 +195,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);
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-06-29 22:07    [W:2.510 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site