From: mkl@pengutronix.de (Marc Kleine-Budde)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] usb: chipidea: cleanup dma_pool if udc_start() fails
Date: Tue, 28 Aug 2012 12:52:19 +0200 [thread overview]
Message-ID: <503CA2E3.6010707@pengutronix.de> (raw)
In-Reply-To: <20120828104617.GZ4011@b20223-02.ap.freescale.net>
On 08/28/2012 12:46 PM, Richard Zhao wrote:
> On Tue, Aug 28, 2012 at 12:31:25PM +0200, Marc Kleine-Budde wrote:
>> If udc_start() fails the qh_pool dma-pool cannot be closed because
>> it's still in use. This patch factors out the dma_pool_free() loop
>> into destroy_eps() and calls it in the error path of udc_start(),
>> too.
>>
>> Cc: Richard Zhao <richard.zhao@freescale.com>
>> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>> ---
>> Hello,
>>
>> Richard, can you please include this patch in your stack. IIRC I think it once
>> was, but now it's not anymore.
> Sorry for that. I just push it to my topics/usb-driver branch.
> Of course, it's better, if Alex can give a ACK and Greg could pick up.
I'm not sure, if this [1] is the latest thread on this patch, but Greg
asked to queue this patch into your tree.
Marc
[1] http://comments.gmane.org/gmane.linux.usb.general/66440
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120828/6e88e645/attachment.sig>
next prev parent reply other threads:[~2012-08-28 10:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 10:31 [PATCH] usb: chipidea: cleanup dma_pool if udc_start() fails Marc Kleine-Budde
2012-08-28 10:46 ` Richard Zhao
2012-08-28 10:52 ` Marc Kleine-Budde [this message]
2012-08-28 11:42 ` Richard Zhao
-- strict thread matches above, loose matches on Subject: below --
2012-06-25 9:09 Marc Kleine-Budde
2012-06-25 9:12 ` Marc Kleine-Budde
2012-06-26 21:44 ` Greg KH
2012-06-27 11:37 ` Richard Zhao
2012-06-27 11:41 ` Marc Kleine-Budde
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=503CA2E3.6010707@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).