Files
u-boot/lib
Christoph Niedermaier 11b72277b0 lib: hashtable: Prevent recursive calling of callback functions
In case there are two variables which each implement env callback
that performs env_set() on the other variable, the callbacks will
call each other recursively until the stack runs out. Prevent such
a recursion from happening.

Example which triggers this behavior:
static int on_foo(...) { env_set("bar", 0); ... }
static int on_bar(...) { env_set("foo", 0); ... }
U_BOOT_ENV_CALLBACK(foo, on_foo);
U_BOOT_ENV_CALLBACK(bar, on_bar);

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Suggested-by: Marek Vasut <marex@denx.de>
(cherry picked from commit 86f58ea539)
2025-12-24 05:16:58 -07:00
..
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-11-12 08:40:05 -07:00
2025-12-17 10:51:23 -07:00
2025-09-11 15:19:22 -06:00
2025-06-27 07:50:11 -06:00
2025-12-17 10:51:23 -07:00
2025-12-17 10:51:23 -07:00
2025-05-16 06:14:22 +02:00
2025-05-16 18:17:17 +02:00