mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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 <joefradley@google.com> Change-Id: Iac72e867401cb67b42120e0aed612e89ba68460e
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user