]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: mt7915: Fix an error handling path in mt7915_add_interface()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 29 Sep 2024 19:53:40 +0000 (21:53 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:34:34 +0000 (13:34 +0100)
commit126a516fe30639708e759678bcb10178938cc718
tree35baa0fdf5463beb2a321e9a188dfe8e742cc5f1
parentaa566ac6b7272e7ea5359cb682bdca36d2fc7e73
wifi: mt76: mt7915: Fix an error handling path in mt7915_add_interface()

If mt76_wcid_alloc() fails, the "mt76.mutex" mutex needs to be released as
done in the other error handling paths of mt7915_add_interface().

Fixes: f3049b88b2b3 ("wifi: mt76: mt7915: allocate vif wcid in the same range as stations")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/b9d8fbfc19360bfe60b9cea1cb0f735ab3b4bc26.1727639596.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c