]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: tilegx: fix memleak when create hcd fail
authorLibo Chen <libo.chen@huawei.com>
Thu, 9 May 2013 06:08:33 +0000 (02:08 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 9 May 2013 17:56:40 +0000 (13:56 -0400)
commitabab8761d095e0805879df48a8ba6ea7f8b31c5e
treec1a82629529996480a7117763eef4cad0f72e537
parent4833d7f0a86fd9a44f98bedf0c639e1da070d3a0
usb: tilegx: fix memleak when create hcd fail

When usb_create_hcd fail, we should call gxio_usb_host_destroy

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [extended to EHCI]
drivers/usb/host/ehci-tilegx.c
drivers/usb/host/ohci-tilegx.c