From: Mathias Nyman <mathias.nyman@intel.com>
To: Saurabh Sengar <saurabh.truth@gmail.com>,
Greg KH <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: host: pci_quirks: fix memory leak, by adding iounmap
Date: Mon, 30 Nov 2015 11:05:10 +0200 [thread overview]
Message-ID: <565C1146.3000103@intel.com> (raw)
In-Reply-To: <CAA8avJ_yWHSC9aQMriWB6s4KuOzL=9hs7m4n6LYSn0ahhk3QCw@mail.gmail.com>
On 30.11.2015 08:28, Saurabh Sengar wrote:
> pinging in case this patch is lost.
>
>
> On 6 November 2015 at 17:46, Saurabh Sengar <saurabh.truth@gmail.com> wrote:
>> added iounmap inorder to free memory mapped to base before returning
>>
>> Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
>> ---
>> drivers/usb/host/pci-quirks.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
>> index f940056..332f687 100644
>> --- a/drivers/usb/host/pci-quirks.c
>> +++ b/drivers/usb/host/pci-quirks.c
>> @@ -990,7 +990,7 @@ static void quirk_usb_handoff_xhci(struct pci_dev *pdev)
>> /* We're reading garbage from the controller */
>> dev_warn(&pdev->dev,
>> "xHCI controller failing to respond");
>> - return;
>> + goto iounmap;
>> }
>>
>> if (!ext_cap_offset)
>> @@ -1061,7 +1061,7 @@ hc_init:
>> "xHCI HW did not halt within %d usec status = 0x%x\n",
>> XHCI_MAX_HALT_USEC, val);
>> }
>> -
>> +iounmap:
>> iounmap(base);
>> }
>>
>> --
>> 1.9.1
>>
Thanks, I'll add it send it forward soon
-Mathias
next prev parent reply other threads:[~2015-11-30 9:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 12:16 Saurabh Sengar
2015-11-30 6:28 ` Saurabh Sengar
2015-11-30 9:05 ` Mathias Nyman [this message]
2015-12-01 22:35 ` Greg KH
2015-12-02 3:38 ` Saurabh Sengar
2015-12-02 15:45 ` Greg KH
2015-12-02 15:55 ` Saurabh Sengar
2015-12-02 16:29 ` Greg KH
2015-12-02 17:21 ` [PATCH v2] " Saurabh Sengar
2015-12-04 16:23 ` Greg KH
2015-12-04 16:31 ` Saurabh Sengar
2015-12-04 16:39 ` [PATCH v3] " Saurabh Sengar
2016-02-11 9:42 [PATCH] " Saurabh Sengar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565C1146.3000103@intel.com \
--to=mathias.nyman@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=saurabh.truth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome