mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 03:01:41 +02: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:
parent
7e629d2241
commit
39f5348cf7
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user