drivers: phy: Fix memory leak
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 6 Dec 2013 12:21:18 +0000 (17:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2013 20:53:30 +0000 (12:53 -0800)
commitc1b1731d2002b93857810aa5da856b43f46bb470
treef98d07c8ce2ff272267e691e55f7078a49e19f42
parent1caab68bff266fb4cea0bee7a8a5494042e883a9
drivers: phy: Fix memory leak

'phy' was not being freed upon error in one of the cases.
Adjust the 'goto's to fix this.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/phy-core.c