Patch "mt76: mt7921: fix retrying release semaphore without end" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mt76: mt7921: fix retrying release semaphore without end

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mt76-mt7921-fix-retrying-release-semaphore-without-e.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2de831dde97658f32202625568fcd263222bde3a
Author: Sean Wang <sean.wang@xxxxxxxxxxxx>
Date:   Tue Sep 14 23:50:22 2021 +0800

    mt76: mt7921: fix retrying release semaphore without end
    
    [ Upstream commit 02d1c7d494d8052288bc175e4ff54b56d08a3c5f ]
    
    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 <YN.Chen@xxxxxxxxxxxx>
    Signed-off-by: YN Chen <YN.Chen@xxxxxxxxxxxx>
    Signed-off-by: Sean Wang <sean.wang@xxxxxxxxxxxx>
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
index 3cb53c642d242..506a1909ce6d5 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
@@ -827,7 +827,7 @@ out:
 	default:
 		ret = -EAGAIN;
 		dev_err(dev->mt76.dev, "Failed to release patch semaphore\n");
-		goto out;
+		break;
 	}
 	release_firmware(fw);
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux