]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fsl_esdhc_imx: Avoid resource leak
authorYe Li <ye.li@nxp.com>
Tue, 1 Oct 2024 13:07:56 +0000 (21:07 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 4 Oct 2024 12:15:15 +0000 (09:15 -0300)
commit876f6de20aead2de6c55f58b2ecc45375238426c
tree1f7743adcd77f78edfc51e5654587f5e9c52a879
parentc820d330680bf8d1193e2557ab3e4c76a7dc9da4
mmc: fsl_esdhc_imx: Avoid resource leak

The memory of priv and plat are leaked if max_bus_width is wrong.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/fsl_esdhc_imx.c