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

Commit c48ecc94 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: Free VMEM if core goes in to bad state"

parents d9642cc2 ae18a004
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -1208,10 +1208,8 @@ static int __unset_free_imem(struct venus_hfi_device *device)
		return 0;

	rc = __unset_imem(device);
	if (rc) {
	if (rc)
		dprintk(VIDC_WARN, "Failed to unset imem: %d\n", rc);
		goto unset_failed;
	}

	rc = __free_imem(device);
	if (rc) {
@@ -1219,7 +1217,6 @@ static int __unset_free_imem(struct venus_hfi_device *device)
		goto free_failed;
	}

unset_failed:
free_failed:
	return rc;
}
@@ -2328,13 +2325,11 @@ static int __core_release(struct venus_hfi_device *device)
		return -EIO;
	}

	if (device->state != VENUS_STATE_DEINIT) {
	rc = __unset_free_imem(device);
	if (rc)
		dprintk(VIDC_ERR,
			"Failed to unset and free imem in core release: %d\n",
			rc);
	}

	if (!(device->intr_status & VIDC_WRAPPER_INTR_STATUS_A2HWD_BMSK))
		disable_irq_nosync(device->hal_data->irq);