V4L/DVB: videobuf: rename videobuf_mmap_free and add sanity checks
authorPawel Osciak <p.osciak@samsung.com>
Tue, 11 May 2010 13:36:29 +0000 (10:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:21:29 +0000 (15:21 -0300)
commita438d6da52b991b6896742a0f9aed80c2f82da87
tree267bfe22e74ec98432a271424b76ee4c70d8652d
parent33c38283f03d8ea0358229fc03c1beebe67aed0e
V4L/DVB: videobuf: rename videobuf_mmap_free and add sanity checks

This function is not specific to mmap, hence the rename.
Add a check whether we are not streaming or reading (for read mode that
uses the stream queue) before freeing anything.

Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c