|
@@ -288,7 +288,7 @@ static int edma_slave_config(struct edma_chan *echan,
|
|
static int edma_dma_pause(struct edma_chan *echan)
|
|
static int edma_dma_pause(struct edma_chan *echan)
|
|
{
|
|
{
|
|
/* Pause/Resume only allowed with cyclic mode */
|
|
/* Pause/Resume only allowed with cyclic mode */
|
|
- if (!echan->edesc->cyclic)
|
|
|
|
|
|
+ if (!echan->edesc || !echan->edesc->cyclic)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
edma_pause(echan->ch_num);
|
|
edma_pause(echan->ch_num);
|