usb: ehci-s5p: fix memleak when fallback to pdata
authorLibo Chen <chenlibo.3@gmail.com>
Thu, 9 May 2013 04:58:08 +0000 (12:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:35:13 +0000 (17:35 -0700)
commit9a9ef7360e601cbe4c978742c115645e67bd6e25
tree5dff9bba5ce0d3040a3f72f439575f14611ef886
parent4746b6c6efcdc3f5ef84f0bc2c39707c6b4e5e24
usb: ehci-s5p: fix memleak when fallback to pdata

When devm_usb_get_phy fail, we should free hcd

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-s5p.c