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

Commit 5be05638 authored by Alok Kediya's avatar Alok Kediya Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp: check for the stream info state.



check for the stream info state before access the structure.

Change-Id: Id0d38b50ff0049c05ee5eb1ef489734c3c96c261
Signed-off-by: default avatarAlok Kediya <kediya@codeaurora.org>
parent 9cfd0ac6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -452,6 +452,8 @@ int msm_isp_axi_check_stream_state(
		}
		stream_info = &axi_data->stream_info[
			HANDLE_TO_IDX(stream_cfg_cmd->stream_handle[i])];
		if (stream_info->state == AVAILABLE)
			continue;
		spin_lock_irqsave(&stream_info->lock, flags);
		if (stream_info->state != valid_state) {
			if ((stream_info->state == PAUSING ||