mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: fix retrying release semaphore without end
We should pass the error code to the caller immediately
to avoid the possible infinite retry to release the semaphore.
Fixes: 1c099ab44727 ("mt76: mt7921: add MCU support")
Co-developed-by: YN Chen <[email protected]>
Signed-off-by: YN Chen <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -736,7 +736,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