Skip to content
Commit 36f7e2b2 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarFelix Fietkau <nbd@nbd.name>
parent 55857ab8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment