diff options
| author | Siarhei Yasinski <[email protected]> | 2022-08-31 10:57:37 +0000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2022-09-06 09:28:47 +0800 |
| commit | 5025224fadc01ec2e8c50e41b765c597dfd40dba (patch) | |
| tree | 1e1838d952b064781edaced24da55c27243feae3 /include | |
| parent | 6f6fbb334cc72cd5183cfe9a5b9fd31bc5d404d7 (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 'include')
0 files changed, 0 insertions, 0 deletions
