Skip to content
Commit 64b69f8c authored by Vignesh Raghavendra's avatar Vignesh Raghavendra Committed by Tom Rini
Browse files

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: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent f4c1f705
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment