commit | 62bd5b1648c2af78048a5af76af29a5d6a5d5205 | [log] [tgz] |
---|---|---|
author | Vignesh Raghavendra <vigneshr@ti.com> | Wed May 20 22:35:41 2020 +0530 |
committer | Tom Rini <trini@konsulko.com> | Mon May 25 11:54:53 2020 -0400 |
tree | e71eef532b4a2786c13d2533581bedc3afc5ecf0 | |
parent | 19dbebce299a33a08a1bdbe79165f4d8c9a5f573 [diff] |
phy: Fix possible NULL pointer deference It is possible that users of generic_phy_*() APIs may pass a valid struct phy pointer but phy->dev can be NULL, leading to NULL pointer deference in phy_dev_ops(). So call generic_phy_valid() to verify that phy and phy->dev are both valid. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>