summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSiarhei Yasinski <[email protected]>2022-08-31 10:57:37 +0000
committerPeng Fan <[email protected]>2022-09-06 09:28:47 +0800
commit5025224fadc01ec2e8c50e41b765c597dfd40dba (patch)
tree1e1838d952b064781edaced24da55c27243feae3 /doc
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Ramon Fried <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions