diff options
author | Marc Kleine-Budde <[email protected]> | 2012-09-12 14:58:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-09-12 10:58:38 -0700 |
commit | ad6b1b97fe8504957d017cd6e4168cac8903d3f3 (patch) | |
tree | bf7cafbf1e642286cfb9390b5e0b5449a3ae466e /tools/perf/util/trace-event-scripting.c | |
parent | c9d1f947a85e38b6dded469470c95ed62430cb3f (diff) |
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 <[email protected]>
Reviewed-by: Richard Zhao <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions