linux/drivers/phy
Roger Quadros 5435bb0967 phy: core: Fix error path in phy_create()
commit e73b49f1c4 upstream.

Prevent resources from being freed twice in case device_add() call
fails within phy_create(). Also use ida_simple_remove() instead of
ida_remove() as we had used ida_simple_get() to allocate the ida.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-07-17 16:21:04 -07:00
..
Kconfig phy-core: Don't allow building phy-core as a module 2014-02-18 12:13:16 -08:00
Makefile USB patches for 3.14-rc1 2014-01-20 16:13:02 -08:00
phy-bcm-kona-usb2.c phy: add Broadcom Kona USB2 PHY driver 2013-12-23 14:33:02 -06:00
phy-core.c phy: core: Fix error path in phy_create() 2014-07-17 16:21:04 -07:00
phy-exynos-dp-video.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00
phy-exynos-mipi-video.c phy: exynos-mipi-video: fix check on array index 2014-06-30 20:11:52 -07:00
phy-mvebu-sata.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00
phy-omap-usb2.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00
phy-twl4030-usb.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00