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

Commit 97d84b75 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: Bail out of work handler if device is in DEINIT state"

parents b4a3cd97 666a457b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3645,6 +3645,12 @@ static void venus_hfi_core_work_handler(struct work_struct *work)
	mutex_lock(&device->lock);

	dprintk(VIDC_INFO, "Handling interrupt\n");

	if (!__core_in_valid_state(device)) {
		dprintk(VIDC_DBG, "%s - Core not in init state\n", __func__);
		goto err_no_work;
	}

	if (!device->callback) {
		dprintk(VIDC_ERR, "No interrupt callback function: %p\n",
				device);