From: Marc Kleine-Budde Date: Wed, 12 Sep 2012 11:58:03 +0000 (+0300) Subject: usb: chipidea: cleanup dma_pool if udc_start() fails X-Git-Tag: v3.6-rc6~19^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad6b1b97fe8504957d017cd6e4168cac8903d3f3;p=pandora-kernel.git usb: chipidea: cleanup dma_pool if udc_start() fails 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: stable Reviewed-by: Richard Zhao Signed-off-by: Marc Kleine-Budde Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed