rb.h: macro RB_FOR_EACH_CONTAINER bug #13464
Labels
area: Kernel
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The macro RB_FOR_EACH_CONTAINER in the rb.h when the function _rb_foreach_next(&tree, &__f) return NULL then the CONTAINER_OF will retrun error.
example:
Test on nrf52832 board when the function _rb_foreach_next(&tree, &__f) in the macro RB_FOR_EACH_CONTAINER return NULL then the variable extnode is 0xFFFFFFF8 and run forever in for structural body.
To Reproduce
The text was updated successfully, but these errors were encountered: