Re: [PATCH v2] ehci-hcd: Cleanup memory resources when ehci_halt fails

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Jia-Ju Bai wrote: > The driver calls ehci_mem_init to allocate memory resources. > But these resources are not freed when ehci_halt fails. > > This patch adds "ehci_mem_cleanup" in error handling code to fix this problem. > > Signed-off-by: Jia-Ju Bai > --- > drivers/usb/h

[PATCH v2] ehci-hcd: Cleanup memory resources when ehci_halt fails

2016-01-04 Thread Jia-Ju Bai
The driver calls ehci_mem_init to allocate memory resources. But these resources are not freed when ehci_halt fails. This patch adds "ehci_mem_cleanup" in error handling code to fix this problem. Signed-off-by: Jia-Ju Bai --- drivers/usb/host/ehci-hcd.c |4 +++- 1 file changed, 3 insertion