Skip to content

Commit 7b7e468

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/MAILBOX] Fixup platform request will deadlock
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 72a78a2 commit 7b7e468

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/drivers/mailbox/mailbox.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ struct rt_mbox_chan *rt_mbox_request_by_index(struct rt_mbox_client *client, int
253253

254254
if (!rt_ofw_data(ctrl_np))
255255
{
256+
rt_spin_unlock(&mbox_ops_lock);
257+
256258
rt_platform_ofw_request(ctrl_np);
259+
260+
rt_spin_lock(&mbox_ops_lock);
257261
}
258262

259263
ctrl = rt_ofw_data(ctrl_np);

0 commit comments

Comments
 (0)