From mboxrd@z Thu Jan 1 00:00:00 1970 From: mkl@pengutronix.de (Marc Kleine-Budde) Date: Wed, 27 Jun 2012 13:41:23 +0200 Subject: [PATCH] usb: chipidea: cleanup dma_pool if udc_start() fails In-Reply-To: References: <1340615374-21352-1-git-send-email-mkl@pengutronix.de> <4FE82B67.8010601@pengutronix.de> <20120626214416.GB4878@kroah.com> Message-ID: <4FEAF163.8010802@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 06/27/2012 01:37 PM, Richard Zhao wrote: > On Wed, Jun 27, 2012 at 5:44 AM, Greg KH wrote: >> On Mon, Jun 25, 2012 at 11:12:07AM +0200, Marc Kleine-Budde wrote: >>> On 06/25/2012 11:09 AM, 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. >>>> >>>> Signed-off-by: Marc Kleine-Budde >>>> --- >>> >>> This patch applies on top of Richard's just published imx-chipindea >>> tree. (https://github.com/riczhao/kernel-imx/commits/topics/usb-driver) >> >> As that tree is still changing, is someone going to pick this up and add >> it to that tree? > It's my tree. > Marc, If you agree, I can queue it and send it out when my patch get upstreamed. Fine with me. Marc -- 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: 262 bytes Desc: OpenPGP digital signature URL: