diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-01-26 15:12:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-28 16:07:32 -0800 |
commit | 6ed742363b9c3d1d038f013591d57a606ae2c261 (patch) | |
tree | 08e6525c8b92236ccaf8ca2bd9394d8ef5673f11 /mm/slab.h | |
parent | bd7c5e31552c06f1186606de8914a135e55f6bac (diff) | |
download | linux-6ed742363b9c3d1d038f013591d57a606ae2c261.tar.bz2 |
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 <aaro.koskinen@nokia.com>
Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions