Merge pull request #3608 from BernardXiong/fix_kobject

[Kernel] Fix the maxlen issue in rt_object_get_pointers
This commit is contained in:
Bernard Xiong 2020-05-18 08:38:48 +08:00 committed by GitHub
commit 6deb233e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,8 @@ int rt_object_get_pointers(enum rt_object_class_type type, rt_object_t *pointers
pointers[index] = object;
index ++;
if (index >= maxlen) break;
}
rt_hw_interrupt_enable(level);