38b1927e5b
Currently pointer phy0 is being dereferenced via the assignment of
phy on the call to phy_get_drvdata before phy0 is null checked, this
can lead to a null pointer dereference. Fix this by performing the
null check on phy0 before the call to phy_get_drvdata. Also replace
the phy0 == NULL check with the more usual !phy0 idiom.
Addresses-Coverity: ("Dereference before null check")
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
phy-sun4i-usb.c | ||
phy-sun6i-mipi-dphy.c | ||
phy-sun9i-usb.c | ||
phy-sun50i-usb3.c |