Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca2ba183 authored by taojiang's avatar taojiang Committed by Gerrit - the friendly Code Review server
Browse files

msm:camera: fix logic error in adsp_shmem status check



In case of MSM_SD_SHUTDOWN ioctl,only if adsp_shmem state
is CAMERA_STATUS_END,msm_csid_release() should be called,
otherwise it should break.

Change-Id: I839fa87ed5775f10f7c3a89e556e8f4d3545000b
Signed-off-by: default avatartaojiang <taojiang@codeaurora.org>
parent d21f4f8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -836,7 +836,7 @@ static long msm_csid_subdev_ioctl(struct v4l2_subdev *sd,
		break;
	case VIDIOC_MSM_CSID_RELEASE:
	case MSM_SD_SHUTDOWN:
		if (adsp_shmem_get_state() == CAMERA_STATUS_END) {
		if (adsp_shmem_get_state() != CAMERA_STATUS_END) {
			/* aDSP still in use */
			rc = 0;
			break;