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

Commit 699626fe authored by Vishalsingh Hajeri's avatar Vishalsingh Hajeri
Browse files

msm: camera: sensor: Unlock the mutex in case of error



Unlock the sensor mutext before returning from function.

Change-Id: I749df402939a2483c8fb5f21fcb20f2c47ad61f0
Signed-off-by: default avatarVishalsingh Hajeri <vhajeri@codeaurora.org>
parent f4e179e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -599,7 +599,8 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
		} else {
			CAM_ERR(CAM_SENSOR, "Invalid Command Type: %d",
				 cmd->handle_type);
			return -EINVAL;
			rc = -EINVAL;
			goto release_mutex;
		}

		pu = power_info->power_setting;