-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipc4: msg: avoid sending duplicated reply message
In multicore case, IPC message is dispatched from primary core to secondary core which send reply message to host. Primary core will do nothing if IPC_TASK_SECONDARY_CORE is set. But in rare case, the secondary code finish the reply message and clear this flag before the ipc thread in primary core check this flag, then primary core also send reply message again. This results to the reply message being inserted two times in ipc message list and infinite loop when visiting the list. This patch will check msg_reply state and do nothing if it is prepared . We don't need to init reply message since it is initialized after deleting from the ipc list. Signed-off-by: Rander Wang <[email protected]>
- Loading branch information
1 parent
176aec7
commit 5a67152
Showing
1 changed file
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters