summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-dma-contig.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
commit7c0917f006a519be5e54c6405f54dea61ca06b7a (patch)
tree47a8e3218398355b7ba1cdf59b9390afa003fdc9 /linux/drivers/media/video/videobuf-dma-contig.c
parentb1ccf703c9015bc3257716ffccd33ca147f7a1a8 (diff)
parent68a6fa1ae421b7c28eb6b8365f3adfd08007e7b7 (diff)
downloadmediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.gz
mediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.bz2
commit backport
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/videobuf-dma-contig.c')
-rw-r--r--linux/drivers/media/video/videobuf-dma-contig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videobuf-dma-contig.c b/linux/drivers/media/video/videobuf-dma-contig.c
index a3bf4c151..6db1398fd 100644
--- a/linux/drivers/media/video/videobuf-dma-contig.c
+++ b/linux/drivers/media/video/videobuf-dma-contig.c
@@ -401,7 +401,7 @@ void videobuf_dma_contig_free(struct videobuf_queue *q,
So, it should free memory only if the memory were allocated for
read() operation.
*/
- if ((buf->memory != V4L2_MEMORY_USERPTR) || !buf->baddr)
+ if ((buf->memory != V4L2_MEMORY_USERPTR) || buf->baddr)
return;
if (!mem)