Commit 72e9c8aa authored by Andrew Lunn's avatar Andrew Lunn Committed by Greg Kroah-Hartman
Browse files

net: mdio: C22 is now optional, EOPNOTSUPP if not provided



[ Upstream commit b063b192 ]

When performing a C22 operation, check that the bus driver actually
provides the methods, and return -EOPNOTSUPP if not. C45 only busses
do exist, and in future their C22 methods will be NULL.

Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 0e629694 ("net/mdiobus: Fix potential out-of-bounds read/write access")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c415856d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment