mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
mt76: do not use devm API for led classdev
With the devm API, the unregister happens after the device cleanup is done, after which the struct mt76_dev which contains the led_cdev has already been freed. This leads to a use-after-free bug that can crash the system. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
55857ab857
commit
36f7e2b2bb
1 changed files with 10 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue