Re: [PATCH] drivers: phy: fix memory leak in error handling

2013-11-13 Thread Michael Opdenacker
Hi Kishon, Thank you very much for reviewing my patch! On 11/11/2013 10:01 AM, Kishon Vijay Abraham I wrote: > A patch has already been sent for fixing this. > > https://git.kernel.org/cgit/linux/kernel/git/kishon/linux-phy.git/commit/?h=fixes Great news! Thanks again, Cheers, Michael. -- Mi

Re: [PATCH] drivers: phy: fix memory leak in error handling

2013-11-11 Thread Kishon Vijay Abraham I
Hi Michael, On Saturday 09 November 2013 10:58 AM, Michael Opdenacker wrote: > This fixes a memory leak in the phy_create() function. > > If ida_simple_get() returns with an error, the code jumps > to the "err0" label without freeing the "phy" pointer. > > This patch introduces a new error manag

[PATCH] drivers: phy: fix memory leak in error handling

2013-11-08 Thread Michael Opdenacker
This fixes a memory leak in the phy_create() function. If ida_simple_get() returns with an error, the code jumps to the "err0" label without freeing the "phy" pointer. This patch introduces a new error management label to address this. Issue found with Coverity (CID 1127219) Signed-off-by: Mich