From 39f5348cf70dfd92d7d1c2ba1872d4a5e6cfd864 Mon Sep 17 00:00:00 2001 From: Joe Fradley Date: Tue, 10 May 2022 20:25:29 +0000 Subject: [PATCH] ANDROID: GKI: Return ERROR value on KUnit load fail Return ERROR define EPERM instead of -1 on load fail. Bug: 231160619 Signed-off-by: Joe Fradley Change-Id: Iac72e867401cb67b42120e0aed612e89ba68460e --- lib/kunit/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kunit/test.c b/lib/kunit/test.c index c47bc34b97c0..66667c265441 100644 --- a/lib/kunit/test.c +++ b/lib/kunit/test.c @@ -578,7 +578,7 @@ int __kunit_test_suites_init(struct kunit_suite * const * const suites) if (!enable_param) { pr_info("kunit: deactivated, cannot load %s\n", suites != NULL ? suites[0]->name : "NULL"); - return -1; + return -EPERM; } for (i = 0; suites[i] != NULL; i++) {