Skip to content

Commit 5929484

Browse files
kerneltoastExactExampl
authored andcommitted
msm: camera: Undo pm_qos request upon error
If anything after msm_pm_qos_update_request(CAMERA_DISABLE_PC_LATENCY) fails, the pm_qos request won't be undone and will waste power. Make sure it gets unset in the error path to fix this. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
1 parent 6029fb9 commit 5929484

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/media/platform/msm/camera_v2/camera

drivers/media/platform/msm/camera_v2/camera/camera.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ static int camera_v4l2_open(struct file *filep)
726726
command_ack_q_fail:
727727
msm_destroy_session(pvdev->vdev->num);
728728
session_fail:
729+
msm_pm_qos_update_request(CAMERA_ENABLE_PC_LATENCY);
729730
pm_relax(&pvdev->vdev->dev);
730731
stream_fail:
731732
camera_v4l2_vb2_q_release(filep);

0 commit comments

Comments
 (0)