Commit d4e2b2b
committed
audio: pipeline: guard against NULL source or sink in pipeline_copy()
When a pipeline is being stopped or unbound, the component unbind
handler may clear pipeline->source_comp before the low-latency
copy task finishes its final execution tick. Attempting to access
p->source_comp->direction without checking for NULL triggers a
synchronous PIF exception (DSP panic).
Add NULL checks for p->source_comp and start before proceeding
with the pipeline graph copy walk, returning 0 cleanly if the
pipeline endpoints are no longer valid.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 158518d commit d4e2b2b
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
| |||
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
190 | 200 | | |
191 | 201 | | |
192 | 202 | | |
| |||
0 commit comments