mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921s: fix a possible memory leak in mt7921_load_patch
Always release fw data at the end of mt7921_load_patch routine.
Fixes: 78b217580c509 ("mt76: mt7921s: fix bus hang with wrong privilege")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
8b32439d5a
commit
b4e6f0d6f1
+2
-6
@@ -541,12 +541,8 @@ static int mt7921_load_patch(struct mt7921_dev *dev)
|
||||
if (mt76_is_sdio(&dev->mt76)) {
|
||||
/* activate again */
|
||||
ret = __mt7921_mcu_fw_pmctrl(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = __mt7921_mcu_drv_pmctrl(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (!ret)
|
||||
ret = __mt7921_mcu_drv_pmctrl(dev);
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user