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

Commit f62fab69 authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: test: add destroy workqueue for fail cases



Free ipa_ut_ctx->wq if create directory or create file fails for
IPA unit tests.

Change-Id: Ic86be7f1d166ad6144613435e8820be202cc64cb
CRs-fixed: 2176738
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 3d139965
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -971,6 +971,7 @@ static int ipa_ut_framework_init(void)
		IS_ERR(ipa_ut_ctx->test_dbgfs_root)) {
		IPA_UT_ERR("failed to create test debugfs dir\n");
		ret = -EFAULT;
		destroy_workqueue(ipa_ut_ctx->wq);
		goto unlock_mutex;
	}

@@ -980,6 +981,7 @@ static int ipa_ut_framework_init(void)
	if (!dfile_enable || IS_ERR(dfile_enable)) {
		IPA_UT_ERR("failed to create enable debugfs file\n");
		ret = -EFAULT;
		destroy_workqueue(ipa_ut_ctx->wq);
		goto fail_clean_dbgfs;
	}