Patch "venus: pm_helpers: Fix error check in vcodec_domains_get()" has been added to the 5.15-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

    venus: pm_helpers: Fix error check in vcodec_domains_get()

to the 5.15-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:
     venus-pm_helpers-fix-error-check-in-vcodec_domains_g.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 201fe1e9f93138f60e262eefbabf15324c342699
Author: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
Date:   Tue Sep 13 14:37:00 2022 +0800

    venus: pm_helpers: Fix error check in vcodec_domains_get()
    
    [ Upstream commit 0f6e8d8c94a82e85e1b9b62a7671990740dc6f70 ]
    
    In the function vcodec_domains_get(), dev_pm_domain_attach_by_name()
    may return NULL in some cases, so IS_ERR() doesn't meet the
    requirements. Thus fix it.
    
    Fixes: 7482a983dea3 ("media: venus: redesign clocks and pm domains control")
    Signed-off-by: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c
index 03fc82cb3fea..055513a7301f 100644
--- a/drivers/media/platform/qcom/venus/pm_helpers.c
+++ b/drivers/media/platform/qcom/venus/pm_helpers.c
@@ -869,8 +869,8 @@ static int vcodec_domains_get(struct venus_core *core)
 	for (i = 0; i < res->vcodec_pmdomains_num; i++) {
 		pd = dev_pm_domain_attach_by_name(dev,
 						  res->vcodec_pmdomains[i]);
-		if (IS_ERR(pd))
-			return PTR_ERR(pd);
+		if (IS_ERR_OR_NULL(pd))
+			return PTR_ERR(pd) ? : -ENODATA;
 		core->pmdomains[i] = pd;
 	}
 



[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