diff options
| author | Andrew Lunn <[email protected]> | 2016-01-26 14:12:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-01-29 00:07:32 +0000 |
| commit | 6ed742363b9c3d1d038f013591d57a606ae2c261 (patch) | |
| tree | 08e6525c8b92236ccaf8ca2bd9394d8ef5673f11 /net/switchdev/switchdev.c | |
| parent | Merge tag 'mac80211-for-davem-2016-01-26' of git://git.kernel.org/pub/scm/lin... (diff) | |
| download | kernel-6ed742363b9c3d1d038f013591d57a606ae2c261.tar.gz kernel-6ed742363b9c3d1d038f013591d57a606ae2c261.zip | |
of: of_mdio: Ensure mdio device is a PHY
of_phy_find_device() is used to find the phy device associated with a
device node. It is expected the node is for a PHY device, but in fact
it could of been probed as a generic MDIO device. Ensure the device is
a PHY before returning it.
Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.")
Reported-by: Aaro Koskinen <[email protected]>
Reported-by: Olof Johansson <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>
Tested-by: Aaro Koskinen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
