mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00
usb: musb: core: call dma_controller_destroy() in the err path
The cleanup in the error is missing the dma controller. The structure is allocated at runtime and ux500 allocates even a little more than just this struct. So cleanup! Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
6904b845e2
commit
f3ce4d5b2d
@ -1933,6 +1933,8 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
|
|||||||
musb_gadget_cleanup(musb);
|
musb_gadget_cleanup(musb);
|
||||||
|
|
||||||
fail3:
|
fail3:
|
||||||
|
if (musb->dma_controller)
|
||||||
|
dma_controller_destroy(musb->dma_controller);
|
||||||
pm_runtime_put_sync(musb->controller);
|
pm_runtime_put_sync(musb->controller);
|
||||||
|
|
||||||
fail2:
|
fail2:
|
||||||
|
Loading…
Reference in New Issue
Block a user