diff options
author | Marek BehĂșn <kabel@kernel.org> | 2022-01-19 17:44:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-24 11:53:01 +0000 |
commit | 2148927e6ed43a1667baf7c2ae3e0e05a44b51a0 (patch) | |
tree | a896418853c6cd23136c1f68430118693b3e9e9b /certs/extract-cert.c | |
parent | afa114d987c40e72ebbbc36bedf7d66b7cdc5883 (diff) | |
download | linux-stable-2148927e6ed43a1667baf7c2ae3e0e05a44b51a0.tar.gz linux-stable-2148927e6ed43a1667baf7c2ae3e0e05a44b51a0.tar.bz2 linux-stable-2148927e6ed43a1667baf7c2ae3e0e05a44b51a0.zip |
net: sfp: ignore disabled SFP node
Commit ce0aa27ff3f6 ("sfp: add sfp-bus to bridge between network devices
and sfp cages") added code which finds SFP bus DT node even if the node
is disabled with status = "disabled". Because of this, when phylink is
created, it ends with non-null .sfp_bus member, even though the SFP
module is not probed (because the node is disabled).
We need to ignore disabled SFP bus node.
Fixes: ce0aa27ff3f6 ("sfp: add sfp-bus to bridge between network devices and sfp cages")
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Cc: stable@vger.kernel.org # 2203cbf2c8b5 ("net: sfp: move fwnode parsing into sfp-bus layer")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'certs/extract-cert.c')
0 files changed, 0 insertions, 0 deletions