media: davinci: vpif: fix unbalanced runtime PM get

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johan Hovold <johan@xxxxxxxxxx>

commit 4a321de239213300a714fa0353a5f1272d381a44 upstream.

Make sure to balance the runtime PM usage counter on driver unbind.

Fixes: 407ccc65bfd2 ("[media] davinci: vpif: add pm_runtime support")
Cc: stable@xxxxxxxxxxxxxxx      # 3.9
Cc: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@xxxxxxxxx>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/media/platform/davinci/vpif.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/media/platform/davinci/vpif.c
+++ b/drivers/media/platform/davinci/vpif.c
@@ -495,6 +495,7 @@ static int vpif_probe(struct platform_de
 
 static int vpif_remove(struct platform_device *pdev)
 {
+	pm_runtime_put(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 	return 0;
 }


Patches currently in stable-queue which might be from johan@xxxxxxxxxx are

queue-5.17/usb-serial-pl2303-add-ibm-device-ids.patch
queue-5.17/usb-serial-simple-add-nokia-phone-driver.patch
queue-5.17/firmware-sysfb-fix-platform-device-leak-in-error-path.patch
queue-5.17/media-davinci-vpif-fix-unbalanced-runtime-pm-enable.patch
queue-5.17/media-davinci-vpif-fix-unbalanced-runtime-pm-get.patch
queue-5.17/greybus-svc-fix-an-error-handling-bug-in-gb_svc_hello.patch
queue-5.17/usb-serial-pl2303-fix-gs-type-detection.patch
queue-5.17/media-davinci-vpif-fix-use-after-free-on-driver-unbind.patch



[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