]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] videobuf2: fix an error message
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 22 Mar 2011 12:29:32 +0000 (09:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Apr 2011 12:52:36 +0000 (09:52 -0300)
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>
drivers/media/video/videobuf2-dma-contig.c

index 58205d5961386cec699b9c680087619e603f0084..a790a5f8c06ff5e48566bfeb41a512975fc26d4f 100644 (file)
@@ -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);
        }