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

Commit 5d923c5b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: avoid repeated calls to handle_sys_error"

parents 2f22b36e aea54c3c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1632,6 +1632,17 @@ static void handle_sys_error(enum hal_command_response cmd, void *data)
		return;
	}

	mutex_lock(&core->lock);
	if (core->state == VIDC_CORE_INVALID ||
		core->state == VIDC_CORE_UNINIT) {
		dprintk(VIDC_ERR,
			"%s: Core already moved to state %d\n",
			 __func__, core->state);
		mutex_unlock(&core->lock);
		return;
	}
	mutex_unlock(&core->lock);

	dprintk(VIDC_WARN, "SYS_ERROR %d received for core %pK\n", cmd, core);
	msm_comm_clean_notify_client(core);