Message ID | 1430858003-3358-1-git-send-email-kamal@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 037443c..52a3884 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -219,6 +219,12 @@ static int edma_terminate_all(struct edma_chan *echan) * echan->edesc is NULL and exit.) */ if (echan->edesc) { + /* + * free the running request descriptor + * since it is not in any of the vdesc lists + */ + edma_desc_free(&echan->edesc->vdesc); + echan->edesc = NULL; edma_stop(echan->ch_num); }