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

Commit c1a86cd8 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: ignore processing responses in invalid state"

parents 8aa2a333 23677733
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -3227,8 +3227,13 @@ static void venus_hfi_core_work_handler(struct work_struct *work)
	for (i = 0; !IS_ERR_OR_NULL(device->response_pkt) &&
		i < num_responses; ++i) {
		struct msm_vidc_cb_info *r = &device->response_pkt[i];
		dprintk(VIDC_DBG, "Processing response %d of %d, type %d\n",
			(i + 1), num_responses, r->response_type);

		if (!__core_in_valid_state(device)) {
			dprintk(VIDC_ERR,
				"Ignore responses from %d to %d as device is in invalid state\n",
				(i + 1), num_responses);
			break;
		}
		device->callback(r->response_type, &r->response);
	}