This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: staging: media: tegra-vde: add missing error return code in 
tegra_vde_probe()
Author:  Yang Yingliang <[email protected]>
Date:    Sat May 22 05:19:11 2021 +0200

Add missing return error code when pm_runtime_resume_and_get() failed.

Fixes: dc8276b78917 ("staging: media: tegra-vde: use 
pm_runtime_resume_and_get()")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/tegra-vde/vde.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

diff --git a/drivers/staging/media/tegra-vde/vde.c 
b/drivers/staging/media/tegra-vde/vde.c
index e025b69776f2..ed4c1250b303 100644
--- a/drivers/staging/media/tegra-vde/vde.c
+++ b/drivers/staging/media/tegra-vde/vde.c
@@ -1071,7 +1071,8 @@ static int tegra_vde_probe(struct platform_device *pdev)
         * power-cycle it in order to put hardware into a predictable lower
         * power state.
         */
-       if (pm_runtime_resume_and_get(dev) < 0)
+       err = pm_runtime_resume_and_get(dev);
+       if (err)
                goto err_pm_runtime;
 
        pm_runtime_put(dev);

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to