summaryrefslogtreecommitdiffstats
path: root/drivers/net/dummy.c
diff options
context:
space:
mode:
authorColin Foster <colin.foster@in-advantage.com>2023-01-27 09:14:27 -0800
committerDavid S. Miller <davem@davemloft.net>2023-01-30 09:24:15 +0000
commit73a876022273cbc9c1db7869a54444ce8b9d085e (patch)
tree0fb5a577deee919ebb151cfe48f2bf37b4d52580 /drivers/net/dummy.c
parent611792920925fb088ddccbe2783c7f92fdfb6b64 (diff)
downloadlinux-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/dummy.c')
0 files changed, 0 insertions, 0 deletions