diff options
| author | Vignesh Raghavendra <vigneshr@ti.com> | 2020-05-20 22:35:41 +0530 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2020-05-25 11:54:53 -0400 |
| commit | 64b69f8c89352975c25730bcca4bf8af2296297f (patch) | |
| tree | e71eef532b4a2786c13d2533581bedc3afc5ecf0 /scripts/objdiff | |
| parent | f4c1f705aa6e686bdb68b7092583be17a7bccebf (diff) | |
| download | u-boot-64b69f8c89352975c25730bcca4bf8af2296297f.tar.gz u-boot-64b69f8c89352975c25730bcca4bf8af2296297f.tar.xz u-boot-64b69f8c89352975c25730bcca4bf8af2296297f.zip | |
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>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
