aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-09-17 14:36:31 +0100
committerDavid S. Miller <davem@davemloft.net>2021-09-19 13:23:47 +0100
commitcbcca2e3961eac736566ac13ef0d0bf6f0b764ec (patch)
treea1638941e4d1d3acc7698f0e3ed5d1325ae1c77b /net/sched/sch_generic.c
parentnet: rtnetlink: convert rcu_assign_pointer to RCU_INIT_POINTER (diff)
downloadlinux-dev-cbcca2e3961eac736566ac13ef0d0bf6f0b764ec.tar.xz
linux-dev-cbcca2e3961eac736566ac13ef0d0bf6f0b764ec.zip
net: phylink: don't call netif_carrier_off() with NULL netdev
Dan Carpenter points out that we have a code path that permits a NULL netdev pointer to be passed to netif_carrier_off(), which will cause a kernel oops. In any case, we need to set pl->old_link_state to false to have the desired effect when there is no netdev present. Fixes: f97493657c63 ("net: phylink: add suspend/resume support") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
0 files changed, 0 insertions, 0 deletions