]> git.baikalelectronics.ru Git - kernel.git/commit
phy: fixed-phy: properly validate phy in fixed_phy_update_state()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Sep 2015 19:36:23 +0000 (20:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 06:04:53 +0000 (23:04 -0700)
commit8ff718e4c2e09dae97a7073d5bf9ee714e0de090
tree86bc014c130c068779fe27597e99698725bf5183
parent8d70e78a9f385baf768282b15193d149d32ee48a
phy: fixed-phy: properly validate phy in fixed_phy_update_state()

Validate that the phy_device passed into fixed_phy_update_state() is a
fixed-phy device before walking the list of phys for a fixed phy at the
same address.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c