commit | ebb8ff61ad97bd1c9721b049497ddb80030eeb0f | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Mon Jul 11 19:40:13 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 08 11:37:57 2022 -0400 |
tree | 0a3b95ddd647b84b14923a3efcd0247f047b53d5 | |
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>