Message ID | 20200614025605.27728-1-wu000273@umn.edu |
---|---|
State | Accepted |
Commit | 7dae2aaaf432767ca7aa11fa84643a7c2600dbdd |
Headers | show |
Series | media: ti-vpe: Fix a missing check and reference count leak | expand |
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index cff2fcd6d812..82d3ee45e2e9 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c @@ -2475,6 +2475,8 @@ static int vpe_runtime_get(struct platform_device *pdev) r = pm_runtime_get_sync(&pdev->dev); WARN_ON(r < 0); + if (r) + pm_runtime_put_noidle(&pdev->dev); return r < 0 ? r : 0; }