Patch "soc: qcom: apr: Fixup the error displayed on lookup failure" has been added to the 5.9-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

    soc: qcom: apr: Fixup the error displayed on lookup failure

to the 5.9-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:
     soc-qcom-apr-fixup-the-error-displayed-on-lookup-fai.patch
and it can be found in the queue-5.9 subdirectory.

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



commit 646f5d3b8ff8e0b966d7326d121a7d390bbea40b
Author: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
Date:   Tue Sep 15 21:12:32 2020 +0530

    soc: qcom: apr: Fixup the error displayed on lookup failure
    
    [ Upstream commit ba34f977c333f96c8acd37ec30e232220399f5a5 ]
    
    APR client incorrectly prints out "ret" variable on pdr_add_lookup failure,
    it should be printing the error value returned by the lookup instead.
    
    Fixes: 8347356626028 ("soc: qcom: apr: Add avs/audio tracking functionality")
    Signed-off-by: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200915154232.27523-1-sibis@xxxxxxxxxxxxxx
    Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c
index 1f35b097c6356..7abfc8c4fdc72 100644
--- a/drivers/soc/qcom/apr.c
+++ b/drivers/soc/qcom/apr.c
@@ -328,7 +328,7 @@ static int of_apr_add_pd_lookups(struct device *dev)
 
 		pds = pdr_add_lookup(apr->pdr, service_name, service_path);
 		if (IS_ERR(pds) && PTR_ERR(pds) != -EALREADY) {
-			dev_err(dev, "pdr add lookup failed: %d\n", ret);
+			dev_err(dev, "pdr add lookup failed: %ld\n", PTR_ERR(pds));
 			return PTR_ERR(pds);
 		}
 	}



[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