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

2015-12-29 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

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

2015-12-29 Thread Jia-Ju Bai
On 12/29/2015 12:04 AM, Alan Stern wrote: On Mon, 28 Dec 2015, Jia-Ju Bai wrote: Please add a changelog. Signed-off-by: Jia-Ju Bai --- drivers/usb/host/ehci-hcd.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hc

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

2015-12-28 Thread Alan Stern
On Mon, 28 Dec 2015, Jia-Ju Bai wrote: Please add a changelog. > Signed-off-by: Jia-Ju Bai > --- > drivers/usb/host/ehci-hcd.c |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > index 48c92bf..015b411 10064

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

2015-12-28 Thread Jia-Ju Bai
Signed-off-by: Jia-Ju Bai --- drivers/usb/host/ehci-hcd.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 48c92bf..015b411 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -675,8