Re: [U-Boot] [PATCH] driver: net: fsl-mc: Free dflt_dpio pointer after its usage
On 03/18/2016 03:45 AM, Prabhakar Kushwaha wrote: > Free dflt_dpio pointer after its usage during error handling > > Signed-off-by: Prabhakar Kushwaha> Reported-by: Jose Rivera > --- > drivers/net/fsl-mc/mc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied to u-boot-fsl-qoriq master. Awaiting upstream. Thanks. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] driver: net: fsl-mc: Free dflt_dpio pointer after its usage
On Fri, Mar 18, 2016 at 5:45 AM, Prabhakar Kushwahawrote: > Free dflt_dpio pointer after its usage during error handling > > Signed-off-by: Prabhakar Kushwaha > Reported-by: Jose Rivera Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] driver: net: fsl-mc: Free dflt_dpio pointer after its usage
Free dflt_dpio pointer after its usage during error handling Signed-off-by: Prabhakar KushwahaReported-by: Jose Rivera --- drivers/net/fsl-mc/mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 7ae619d..27f352d 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -747,11 +747,11 @@ static int dpio_init(void) err_get_swp_init: dpio_disable(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpio->dpio_handle); err_get_enable: - free(dflt_dpio); err_get_attr: dpio_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpio->dpio_handle); dpio_destroy(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpio->dpio_handle); err_create: + free(dflt_dpio); err_malloc: return err; } -- 1.9.1 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot