From: Dongliang Mu Date: Tue, 19 Oct 2021 03:08:08 +0000 (+0200) Subject: media: driver: bdisp: add pm_runtime_disable in the error handling code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0529c0f55da87a338a07f3394f55c4873a937be6;p=linux.git media: driver: bdisp: add pm_runtime_disable in the error handling code In the error handling code of bdisp_probe, it fails to invoke pm_runtime_disable in many error sites. Fix this by adding pm_runtime_disable at the label err_remove. Signed-off-by: Dongliang Mu Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c index 7d467f2ba0729..01ce7b7117743 100644 --- a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c +++ b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c @@ -1394,6 +1394,7 @@ err_filter: err_pm: pm_runtime_put(dev); err_remove: + pm_runtime_disable(dev); bdisp_debugfs_remove(bdisp); v4l2_device_unregister(&bdisp->v4l2_dev); err_clk: