Skip to content

Commit

Permalink
saa7146: stop DMA before de-allocating DMA scatter/gather page buffers
Browse files Browse the repository at this point in the history
Thanks-to: Hartmut <e9hack@googlemail.com> for pointing me the problem
and testing the fix.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 2, 2010
1 parent 7415c76 commit ba9e9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,9 +1333,9 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)

DEB_CAP(("vbuf:%p\n",vb));

release_all_pagetables(dev, buf);

saa7146_dma_free(dev,q,buf);

release_all_pagetables(dev, buf);
}

static struct videobuf_queue_ops video_qops = {
Expand Down

0 comments on commit ba9e9f3

Please sign in to comment.