]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ethtool: use phydev variable
authorTom Rix <trix@redhat.com>
Wed, 5 Jan 2022 14:10:20 +0000 (06:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:44 +0000 (13:09 +0100)
commit78f0d7353bdf1a15df62c739ae1655ced0b7fc57
tree6c0dea7834471e1b74e1a904f84e07fd5a13dae9
parent7bf3910b82f65709db5fa284a3b9d5a3aedbd3d6
ethtool: use phydev variable

[ Upstream commit ccd21ec5b8dd9b8a528a70315cee95fc1dd79d20 ]

In ethtool_get_phy_stats(), the phydev varaible is set to
dev->phydev but dev->phydev is still used.  Replace
dev->phydev uses with phydev.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 7b07be1ff1cb ("ethtool: Avoid overflowing userspace buffer on stats query")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ethtool/ioctl.c