diff options
| author | 2023-01-27 09:14:27 -0800 | |
|---|---|---|
| committer | 2023-01-30 09:24:15 +0000 | |
| commit | 73a876022273cbc9c1db7869a54444ce8b9d085e (patch) | |
| tree | 0fb5a577deee919ebb151cfe48f2bf37b4d52580 /scripts/Makefile.thinlto | |
| parent | netrom: Fix use-after-free caused by accept on already connected socket (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
