Skip to content

Commit

Permalink
Merge pull request #1072 from rtiemann/rpi-4.0.y
Browse files Browse the repository at this point in the history
dmaengine: bcm2708-dmaengine: Fix memory leak when stopping a running transfer
  • Loading branch information
popcornmix committed Jul 18, 2015
2 parents fbc901a + 0362572 commit caddc5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/bcm2708-dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ static int bcm2835_dma_terminate_all(struct dma_chan *chan)
* c->desc is NULL and exit.)
*/
if (c->desc) {
bcm2835_dma_desc_free(&c->desc->vd);
c->desc = NULL;
bcm2835_dma_abort(c->chan_base);

Expand Down

0 comments on commit caddc5f

Please sign in to comment.