diff options
author | Chris Kay <chris.kay@arm.com> | 2019-01-23 17:37:17 +0000 |
---|---|---|
committer | ronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com> | 2019-02-26 08:40:42 +0100 |
commit | cb6bc5d9d5edd6b686c80971af9deda36ff4a684 (patch) | |
tree | cdce25db10c6e2eec409299694580303a9ab3727 | |
parent | f13dfd8e4cd01003031b167885cb78c03b1d03df (diff) |
fwk: Zero event list node when duplicating
Duplicating events does not currently zero the list node. This triggers
some of the debug safety checks in the list component when trying to
push the event to a new list, as it will refuse to operate on a node
that it thinks is still part of another list.
Change-Id: Ida83f45f2fdbd1dd4042ca09633a1bc90903de6d
Signed-off-by: Chris Kay <chris.kay@arm.com>
-rw-r--r-- | framework/src/fwk_multi_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/src/fwk_multi_thread.c b/framework/src/fwk_multi_thread.c index 155d95c1..3997b43b 100644 --- a/framework/src/fwk_multi_thread.c +++ b/framework/src/fwk_multi_thread.c @@ -98,6 +98,9 @@ static struct fwk_event *duplicate_event(struct fwk_event *event) if (allocated_event != NULL) { *allocated_event = *event; + + allocated_event->slist_node = (struct fwk_slist_node) { 0 }; + return allocated_event; } |