From: Guennadi Liakhovetski Date: Tue, 22 Mar 2011 12:29:32 +0000 (-0300) Subject: [media] videobuf2: fix an error message X-Git-Tag: v2.6.39-rc6~40^2~35 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=99a41771bfbd4fb350b0021d3298b0cb49dd747b;p=karo-tx-linux.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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); }