Commit f16f5c3
committed
audio: chain_dma: prevent NULL pointer dereference in chain_task_run
Validate cd, cd->dma_buffer, cd->chan_link, and cd->chan_host at the start
of chain_task_run() to handle stream teardown cleanly when buffers or channels
are freed before task completion.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent fdc1c48 commit f16f5c3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
0 commit comments