summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf2-dma-contig.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-03-22 13:29:32 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-04-13 14:52:36 +0200
commit99a41771bfbd4fb350b0021d3298b0cb49dd747b (patch)
treeba880ec9b16bc582f6b1ceca85381f0fc83f7714 /drivers/media/video/videobuf2-dma-contig.c
parent[media] videobuf2: fix core to correctly identify allocation failures (diff)
downloadlinux-99a41771bfbd4fb350b0021d3298b0cb49dd747b.tar.xz
linux-99a41771bfbd4fb350b0021d3298b0cb49dd747b.zip
[media] videobuf2: fix an error message
buf->size is not yet initialised in videobuf2-dma-contig at the time of the error message, use "size." Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf2-dma-contig.c')
-rw-r--r--drivers/media/video/videobuf2-dma-contig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c
index 58205d596138..a790a5f8c06f 100644
--- a/drivers/media/video/videobuf2-dma-contig.c
+++ b/drivers/media/video/videobuf2-dma-contig.c
@@ -46,7 +46,7 @@ static void *vb2_dma_contig_alloc(void *alloc_ctx, unsigned long size)
GFP_KERNEL);
if (!buf->vaddr) {
dev_err(conf->dev, "dma_alloc_coherent of size %ld failed\n",
- buf->size);
+ size);
kfree(buf);
return ERR_PTR(-ENOMEM);
}