Patch "ASoC: codecs: Fix error handling in aw_dev_get_dsp_status function" has been added to the 6.11-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

    ASoC: codecs: Fix error handling in aw_dev_get_dsp_status function

to the 6.11-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:
     asoc-codecs-fix-error-handling-in-aw_dev_get_dsp_sta.patch
and it can be found in the queue-6.11 subdirectory.

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



commit 0033290c8b3f12e34fe1dedaf9df65e2a3c61ccb
Author: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>
Date:   Wed Oct 9 00:39:38 2024 -0700

    ASoC: codecs: Fix error handling in aw_dev_get_dsp_status function
    
    [ Upstream commit 251ce34a446ef0e1d6acd65cf5947abd5d10b8b6 ]
    
    Added proper error handling for register value check that
    return -EPERM when register value does not meet expected condition
    
    Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>
    Link: https://patch.msgid.link/20241009073938.7472-1-zhujun2@xxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/aw88399.c b/sound/soc/codecs/aw88399.c
index 8dc2b8aa6832d..bba59885242d0 100644
--- a/sound/soc/codecs/aw88399.c
+++ b/sound/soc/codecs/aw88399.c
@@ -656,7 +656,7 @@ static int aw_dev_get_dsp_status(struct aw_device *aw_dev)
 	if (ret)
 		return ret;
 	if (!(reg_val & (~AW88399_WDT_CNT_MASK)))
-		ret = -EPERM;
+		return -EPERM;
 
 	return 0;
 }




[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