summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/sh_vou.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2011-06-28 13:29:02 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-01 03:33:47 +0200
commit66072d4fa7cb644f1f064e290f8fddfbd8ccd478 (patch)
tree97ab6c16f04589118c720fdd314d114d4d9dae5d /drivers/media/video/sh_vou.c
parent[media] media: vb2: reset queued_count value during queue reinitialization (diff)
downloadlinux-66072d4fa7cb644f1f064e290f8fddfbd8ccd478.tar.xz
linux-66072d4fa7cb644f1f064e290f8fddfbd8ccd478.zip
[media] media: vb2: fix allocation failure check
__vb2_queue_alloc function returns the number of successfully allocated buffers. There is no point in checking if the returned value is negative. If this function returns 0, videobuf2 should just return -ENOMEM to userspace, because no driver can work without memory buffers. Reported-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> CC: Pawel Osciak <pawel@osciak.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/sh_vou.c')
0 files changed, 0 insertions, 0 deletions