diff options
author | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2016-03-18 16:15:29 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-03-28 17:35:38 -0700 |
commit | cd7b3fbcf46844230ad664884c18d0281a4a31d7 (patch) | |
tree | a4f4853347d09dae3c5b5a0db838e2e45db2531f | |
parent | 258b8c93ec25a7fd8e099b28a1149574935b255e (diff) | |
download | u-boot-imx-cd7b3fbcf46844230ad664884c18d0281a4a31d7.zip u-boot-imx-cd7b3fbcf46844230ad664884c18d0281a4a31d7.tar.gz u-boot-imx-cd7b3fbcf46844230ad664884c18d0281a4a31d7.tar.bz2 |
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 <prabhakar.kushwaha@nxp.com>
Reported-by: Jose Rivera <german.rivera@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r-- | drivers/net/fsl-mc/mc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index f83bd0c..d2b8b5c 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; } |