Commit fdc1c48
committed
schedule: zephyr_dp: validate module and task pointers in scheduler_dp_thread_ipc
Move task_dp_pdata assignment after checking pmod and validate pmod->dev,
pmod->dev->task, and pmod->dev->task->priv_data pointers before dereferencing
to prevent NULL pointer crashes.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 70615c4 commit fdc1c48
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| |||
0 commit comments