dma: add missing error handling in dma_trace_start

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-06-17 14:39:23 +02:00 committed by Janusz Jankowski
parent c328dd85f6
commit cc22442d38
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,8 @@ static int dma_trace_start(struct dma_trace_data *d)
err = dma_sg_alloc(&config.elem_array, RZONE_SYS,
config.direction,
elem_num, elem_size, elem_addr, 0);
if (err < 0)
return err;
err = dma_set_config(d->dc.dmac, d->dc.chan, &config);
if (err < 0)