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

Commit ff09257a authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: csiphy: Add correct state check for hardware acquire" into dev/msm-4.14-camx

parents 7c42630e 4ac00cb6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -578,6 +578,14 @@ int32_t cam_csiphy_core_cfg(void *phy_dev,

		struct cam_create_dev_hdl bridge_params;

		if (csiphy_dev->csiphy_state == CAM_CSIPHY_START) {
			CAM_ERR(CAM_CSIPHY,
				"Not in right state to acquire : %d",
				csiphy_dev->csiphy_state);
			rc = -EINVAL;
			goto release_mutex;
		}

		rc = copy_from_user(&csiphy_acq_dev,
			u64_to_user_ptr(cmd->handle),
			sizeof(csiphy_acq_dev));