media: driver: bdisp: add pm_runtime_disable in the error handling code
authorDongliang Mu <mudongliangabcd@gmail.com>
Tue, 19 Oct 2021 03:08:08 +0000 (05:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 11:06:09 +0000 (12:06 +0100)
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 <mudongliangabcd@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/bdisp/bdisp-v4l2.c

index 7d467f2..01ce7b7 100644 (file)
@@ -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: