mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
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>
This commit is contained in:
parent
258b8c93ec
commit
cd7b3fbcf4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue