]> 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)
commitb4606002c8132eec8bcf8630d34b695b03e49d75
tree86bc014c130c068779fe27597e99698725bf5183
parent36933e0328d15034626eae2f5dbad82584b58fc6
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