Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp738745ybg; Wed, 10 Jun 2020 12:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFaM+2K+CcumC+dxaussTshIjl2z9mNU/He4ToRPnTZomO+zVxPAYtXbw16c7Kz/XldPDq X-Received: by 2002:aa7:d283:: with SMTP id w3mr3889452edq.262.1591816936956; Wed, 10 Jun 2020 12:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591816936; cv=none; d=google.com; s=arc-20160816; b=m5bqwEYqkS89B4E703pTh21Gkc9pfYbPevMTQqQqliqthCw/H/l6+91exdiFV13pZL Bx1I0UCIK9xO1TfTcNN4ID4ZiiRcNs84sgpy+10jztL7yOu7iwNI8Jc1Hb4LOgWjt7vj inna4Zq//UmKx1SDyizRy1y0lp/8vSFEDO8TVNnG2N0Wql2vhTp7OQSrDyHcSV/TmxYK UfBt95UE+8t/AMS1BklXtRohMnILpTjk77OYVksmCSPfSf9YSypKXYEIeGeI3YtKLbff nQH5sZfM0Yp3oux6/l0yfLO8fSSAtZvXdfVp26ekY0jPYkVqLq5imdBZwmpcO1cSgCTp w4Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HlSa8977Bm2dNMggyGq3qorsu8LAhgwlSPa+K6GAQ6s=; b=eIfWJp7CU+MkTZF6vhl3+SwR8tNizPHH13ctRlv17V1AolFSc2q+LS47tKUCzj/5V2 cCuN3iB8i5u7MM67Xc/nPi/qb5UyXsVtqsDMkei9JdENIul56ALuxslAHfPgR1mdTLOE O8IXiRu52cyAVhiCPCURIsDRtnOafmd6RqfFCs3EVTo6Inbaqw3NW+jNtzPAtnWyEfuo 8uf1KqxnJVLPWSABUWClwT/RNO9tiMyKIHIYScCb8YWrX7QFrvAnp+BjsCK+3J/KJwkj ZBxftxgDA35mLKZTOBC4AqUmWvi84CXfmSGohOel6qmPSqUCpkeNntILouM1CL5/TZlY cNgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si582592ejx.512.2020.06.10.12.21.53; Wed, 10 Jun 2020 12:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729728AbgFJOJe (ORCPT + 99 others); Wed, 10 Jun 2020 10:09:34 -0400 Received: from netrider.rowland.org ([192.131.102.5]:41571 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729621AbgFJOJd (ORCPT ); Wed, 10 Jun 2020 10:09:33 -0400 Received: (qmail 12849 invoked by uid 1000); 10 Jun 2020 10:09:32 -0400 Date: Wed, 10 Jun 2020 10:09:32 -0400 From: Alan Stern To: Chuhong Yuan Cc: Greg Kroah-Hartman , Magnus Damm , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: ohci-sm501: Add missed iounmap() in remove Message-ID: <20200610140932.GA11727@rowland.harvard.edu> References: <20200610024844.3628408-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610024844.3628408-1-hslester96@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 10:48:44AM +0800, Chuhong Yuan wrote: > 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") > Signed-off-by: Chuhong Yuan > --- > 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 cff965240327..b91d50da6127 100644 > --- a/drivers/usb/host/ohci-sm501.c > +++ b/drivers/usb/host/ohci-sm501.c > @@ -191,6 +191,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); > mem = platform_get_resource(pdev, IORESOURCE_MEM, 1); > -- > 2.26.2 Acked-by: Alan Stern