diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-07-11 19:40:13 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-08 11:37:57 -0400 |
commit | ebb8ff61ad97bd1c9721b049497ddb80030eeb0f (patch) | |
tree | 0a3b95ddd647b84b14923a3efcd0247f047b53d5 /drivers/net/dwc_eth_qos.c | |
parent | 8a3b69d2f257570afef273a579a8b22ec4160e9f (diff) |
net: phy: possible NULL dereference in fixed_phy_create()
We check if phydev is NULL. Only but if it is non-NULL we set one
component of phydev. But even if it is NULL we set another. We should not
dereference NULL in either case.
Fixes: e24b58f5ed4f ("net: phy: don't require PHY interface mode during PHY creation")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Diffstat (limited to 'drivers/net/dwc_eth_qos.c')
0 files changed, 0 insertions, 0 deletions