diff options
author | Colin Foster <colin.foster@in-advantage.com> | 2023-01-27 09:14:27 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-30 09:24:15 +0000 |
commit | 73a876022273cbc9c1db7869a54444ce8b9d085e (patch) | |
tree | 0fb5a577deee919ebb151cfe48f2bf37b4d52580 /drivers/net/ethernet/intel/ice/ice_idc_int.h | |
parent | 611792920925fb088ddccbe2783c7f92fdfb6b64 (diff) | |
download | linux-stable-73a876022273cbc9c1db7869a54444ce8b9d085e.tar.gz linux-stable-73a876022273cbc9c1db7869a54444ce8b9d085e.tar.bz2 linux-stable-73a876022273cbc9c1db7869a54444ce8b9d085e.zip |
net: phy: fix null dereference in phy_attach_direct
Commit bc66fa87d4fd ("net: phy: Add link between phy dev and mac dev")
introduced a link between net devices and phy devices. It fails to check
whether dev is NULL, leading to a NULL dereference error.
Fixes: bc66fa87d4fd ("net: phy: Add link between phy dev and mac dev")
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_idc_int.h')
0 files changed, 0 insertions, 0 deletions