Commit a2c1b62
committed
idc: zephyr_idc: check target core before taking idc_mutex
idc_send_msg() acquired idc_mutex and then returned -EACCES on the
disabled-core path without unlocking, leaking the mutex and blocking
all later cross-core IDC sends.
Move the cpu_is_core_enabled() check ahead of the lock so the early
return no longer holds the mutex and the per-core work slot is not
touched for a disabled core.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 9cd055b commit a2c1b62
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments