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-10-25 18:19:08 +01:00
2025-05-01 05:56:48 -06:00
2025-11-11 04:09:41 -07:00
2025-10-19 12:27:49 +01:00
2025-12-01 15:57:27 +00:00
2025-12-01 15:57:27 +00:00
2025-05-01 05:56:48 -06:00
2025-11-12 08:40:05 -07:00
2025-11-12 08:40:05 -07:00
2025-08-14 07:45:25 -06:00
2025-11-12 08:39:49 -07:00
2025-05-16 14:45:25 +02:00
2025-12-01 15:57:27 +00:00
2024-10-11 11:44:48 -06:00
2025-12-17 10:51:23 -07:00
2025-12-01 15:57:27 +00:00
2025-05-27 10:16:02 +01:00
2025-09-11 15:19:22 -06:00
2025-11-12 06:12:02 -07:00
2025-02-06 23:49:28 +00:00
2025-06-12 19:43:54 +00:00
2025-11-14 11:28:34 -07:00
2025-06-27 07:50:11 -06:00
2025-05-29 17:21:36 +01:00
2025-12-10 05:53:03 -07:00
2025-02-15 19:05:12 -07:00
2025-09-04 07:08:25 -06:00
2025-12-01 15:57:27 +00:00
2025-02-06 23:49:28 +00:00
2025-12-10 05:53:03 -07:00
2025-08-27 12:46:48 -06:00
2025-05-29 17:21:36 +01:00
2025-05-27 05:17:50 +01:00
2024-10-11 11:44:48 -06:00
2025-12-24 05:16:58 -07:00
2024-10-11 11:44:48 -06:00
2025-11-11 04:09:40 -07:00
2025-12-10 05:53:03 -07:00
2025-12-17 14:01:22 +00:00
2025-05-16 10:27:12 +02:00
2025-12-01 15:57:27 +00:00
2025-12-17 14:02:26 -07:00
2025-02-06 23:49:28 +00:00
2025-02-06 23:49:28 +00:00
2025-12-01 15:42:04 +00:00
2025-12-17 10:51:23 -07:00
2025-12-01 15:57:27 +00:00
2024-11-18 16:12:35 +01:00
2025-05-02 09:45:30 -06:00
2025-10-24 08:47:38 +01:00
2025-05-01 05:56:48 -06:00
2025-04-29 12:43:47 -06:00
2025-04-29 12:43:47 -06:00
2025-12-17 10:51:23 -07:00
2025-09-04 07:08:24 -06:00
2025-05-16 14:01:13 +02:00
2025-05-16 06:14:22 +02:00
2025-12-01 15:57:27 +00:00
2024-10-11 11:44:47 -06:00
2025-12-24 05:16:56 -07:00
2025-12-07 17:18:57 -07:00
2024-10-14 17:58:30 -06:00
2025-05-27 04:57:06 +01:00
2025-05-16 18:17:17 +02:00
2025-09-04 07:08:24 -06:00
2025-12-13 16:28:53 -07:00