summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorAleksei Sviridkin <f@lex.la>2026-09-18 04:50:19 +0300
committerJakub Kicinski <kuba@kernel.org>2026-09-24 08:16:53 -0700
commitc2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4 (patch)
tree75d9088373b89abf48d6145d0f0e76a768256ab1 /include/linux/timerqueue.h
parent7c9f391ec89cb621d7af375ace2eb9a6248e5b9d (diff)
net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621
The core and io supplies are only requested for ID_MT7530: both the devm_regulator_get() in probe and the regulator_enable() in mt7530_setup() are guarded by the switch id, but mt7530_remove() disables them unconditionally. On an MT7621 or an MT7531 both pointers are still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls regulator_disable() on NULL. Fixes: ddda1ac116c8 ("net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC") Signed-off-by: Aleksei Sviridkin <f@lex.la> Link: https://patch.msgid.link/20260918015020.2518315-2-f@lex.la Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions