projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706dc08
)
mt76: mt7915: fix possible infinite loop release semaphore
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Tue, 14 Sep 2021 16:42:51 +0000
(18:42 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 20 Oct 2021 08:36:42 +0000
(10:36 +0200)
Fix possible infinite loop in mt7915_load_patch if
mt7915_mcu_patch_sem_ctrl always returns an error.
Fixes:
e57b7901469fc
("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>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
index
f07d935
..
7415b93
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
@@
-2668,7
+2668,7
@@
out:
default:
ret = -EAGAIN;
dev_err(dev->mt76.dev, "Failed to release patch semaphore\n");
-
goto out
;
+
break
;
}
release_firmware(fw);