Re: [PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-08 Thread Kishon Vijay Abraham I
Hi, On Tuesday 08 July 2014 07:15 AM, Greg KH wrote: > On Mon, Jul 07, 2014 at 12:18:22PM +0530, Kishon Vijay Abraham I wrote: >> From: Roger Quadros >> >> Prevent resources from being freed twice in case device_add() call >> fails within phy_create(). Also use ida_simple_remove() instead of >>

Re: [PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-08 Thread Kishon Vijay Abraham I
Hi, On Tuesday 08 July 2014 07:15 AM, Greg KH wrote: On Mon, Jul 07, 2014 at 12:18:22PM +0530, Kishon Vijay Abraham I wrote: From: Roger Quadros rog...@ti.com Prevent resources from being freed twice in case device_add() call fails within phy_create(). Also use ida_simple_remove() instead of

Re: [PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 12:18:22PM +0530, Kishon Vijay Abraham I wrote: > From: Roger Quadros > > 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

[PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-07 Thread Kishon Vijay Abraham I
From: Roger Quadros 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 Signed-off-by: Kishon Vijay Abraham I ---

[PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-07 Thread Kishon Vijay Abraham I
From: Roger Quadros rog...@ti.com 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 rog...@ti.com Signed-off-by:

Re: [PATCH 5/8] phy: core: Fix error path in phy_create()

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 12:18:22PM +0530, Kishon Vijay Abraham I wrote: From: Roger Quadros rog...@ti.com 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