summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
diff options
context:
space:
mode:
authorSiarhei Yasinski <siarhei.yasinski@sintecs.eu>2022-08-31 10:57:37 +0000
committerPeng Fan <peng.fan@nxp.com>2022-09-06 09:28:47 +0800
commit5025224fadc01ec2e8c50e41b765c597dfd40dba (patch)
tree1e1838d952b064781edaced24da55c27243feae3 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
parent6f6fbb334cc72cd5183cfe9a5b9fd31bc5d404d7 (diff)
net: enetc: Fix use after free issue in fsl_enetc.c
If ethernet connected to SFP, like this: &enetc_port0 { phy-connection-type = "sgmii"; sfp = <&sfp0>; managed = "in-band-status"; status = "okay"; }; Then enetc_config_phy returns -ENODEV and the memory containing the mdio interface is freed. It's better to unregister and free mdio resources. Signed-off-by: Siarhei Yasinski <siarhei.yasinski@sintecs.eu> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h')
0 files changed, 0 insertions, 0 deletions