]> git.baikalelectronics.ru Git - kernel.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)
commitbee022e2cbb7ea41326de69050fee0abd56f775c
treec1a82629529996480a7117763eef4cad0f72e537
parentcabe02590d4e7188454e09f4417751dfd39c630f
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