]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: videobuf-dma-sg: Avoid using a wrong size
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 25 Apr 2010 14:23:52 +0000 (11:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:58 +0000 (12:57 -0300)
commit6b2aa647e83d35a36d659d44943608e9f1ca580f
tree556cfac9c0f4e5f345e847952802f5348cb1d3f0
parent13b5db0dc6d5cd10806cb6970327997ce5945c20
V4L/DVB: videobuf-dma-sg: Avoid using a wrong size

drivers/media/video/videobuf-dma-sg.c: In function ‘__videobuf_mmap_mapper’:
drivers/media/video/videobuf-dma-sg.c:557: warning: ‘size’ may be used uninitialized in this function

The condition where size is floating should never happen, due to the paranoia check,
but a future change at the logic might break it. So, let's just set size to zero and
use it for the paranoia check.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-sg.c