https://github.com/torvalds/linux
Revision e73b49f1c4e75c44d62585cc3e5b9c7894b61c32 authored by Roger Quadros on 10 July 2014, 06:25:02 UTC, committed by Greg Kroah-Hartman on 12 July 2014, 01:23:49 UTC
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.

Cc: 3.13+ <stable@vger.kernel.org> # 3.13+
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>
1 parent bf5baf9
History
Tip revision: e73b49f1c4e75c44d62585cc3e5b9c7894b61c32 authored by Roger Quadros on 10 July 2014, 06:25:02 UTC
phy: core: Fix error path in phy_create()
Tip revision: e73b49f
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 3.0 KB
Makefile -rw-r--r-- 2.3 KB
gen_init_cpio.c -rw-r--r-- 12.7 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top