[media] videobuf: Allow reqbufs(0) to free current buffers
authorHans de Goede <hdegoede@redhat.com>
Sun, 31 Aug 2014 10:19:21 +0000 (07:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:13:41 +0000 (20:13 -0300)
commitb7900eedfb393dcea9794fbb6d57e4d43338a16b
tree74abf66faf285134569ab25508171b940782024d
parent12561ad622de254d69ec1baaf6734afc602a2c30
[media] videobuf: Allow reqbufs(0) to free current buffers

All the infrastructure for this is already there, and despite our desires for
the old videobuf code to go away, it is currently still in use in 18 drivers.

Allowing reqbufs(0) makes these drivers behave consistent with modern drivers,
making live easier for userspace, see e.g. :
https://bugzilla.gnome.org/show_bug.cgi?id=735660

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf-core.c