[PATCH] phy: Fix possible NULL pointer deference
Tom Rini
trini at konsulko.com
Mon May 25 19:59:23 CEST 2020
On Wed, May 20, 2020 at 10:35:41PM +0530, Vignesh Raghavendra wrote:
> 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 at ti.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200525/2d973be0/attachment.sig>
More information about the U-Boot
mailing list