You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
mt76: mt7915: fix possible infinite loop release semaphore
[ Upstream commite500c9470e] Fix possible infinite loop in mt7915_load_patch if mt7915_mcu_patch_sem_ctrl always returns an error. Fixes:e57b790146("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7a8e4effbb
commit
116652a3d5
@@ -2648,7 +2648,7 @@ out:
|
||||
default:
|
||||
ret = -EAGAIN;
|
||||
dev_err(dev->mt76.dev, "Failed to release patch semaphore\n");
|
||||
goto out;
|
||||
break;
|
||||
}
|
||||
release_firmware(fw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user