diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-07-11 19:40:13 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-08-08 11:37:57 -0400 |
| commit | ebb8ff61ad97bd1c9721b049497ddb80030eeb0f (patch) | |
| tree | 0a3b95ddd647b84b14923a3efcd0247f047b53d5 /include/linux/kernel.h | |
| 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 <[email protected]>
Reviewed-by: Marek BehĂșn <[email protected]>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions
