summaryrefslogtreecommitdiffstats
path: root/net/ethtool/phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethtool/phy.c')
-rw-r--r--net/ethtool/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethtool/phy.c b/net/ethtool/phy.c
index 560dd039c662..4ef7c6e32d10 100644
--- a/net/ethtool/phy.c
+++ b/net/ethtool/phy.c
@@ -164,7 +164,7 @@ int ethnl_phy_doit(struct sk_buff *skb, struct genl_info *info)
goto err_unlock_rtnl;
/* No PHY, return early */
- if (!req_info.pdn->phy)
+ if (!req_info.pdn)
goto err_unlock_rtnl;
ret = ethnl_phy_reply_size(&req_info.base, info->extack);