]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda1f90384b6a9c5ed191b0a535dd60dbbc37492e
tree267bfe22e74ec98432a271424b76ee4c70d8652d
parent6eba7ff2f1699ad5171dbfa338362465fde7da43
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