driver: net: fsl-mc: Free dflt_dpio pointer after its usage
PATCH 1/1 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 Kushwaha <[email protected]>
Reported-by Jose Rivera <[email protected]>
--- drivers/net/fsl-mc/mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fsl-mc/mc.c +1 -1
@@ -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; }
Signature · 1 line
1.9.1
PATCH 1/1 driver: net: fsl-mc: Free dflt_dpio pointer after its usage
Quoted 4 lines · Prabhakar Kushwaha
Free
dflt_dpiopointer after its usage during error handlingSigned-off-by Prabhakar Kushwaha <[email protected]>Reported-by Jose Rivera <[email protected]>
Acked-by Joe Hershberger <[email protected]>
PATCH 1/1 driver: net: fsl-mc: Free dflt_dpio pointer after its usage
In reply to Prabhakar KushwahaQuoted 8 lines · Prabhakar Kushwaha
Free
dflt_dpiopointer after its usage during error handlingSigned-off-by Prabhakar Kushwaha <[email protected]>Reported-by Jose Rivera <[email protected]>--- 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