]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: omap_vout: Don't free buffers if they haven't been allocated
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 Nov 2015 10:20:19 +0000 (08:20 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 13:15:20 +0000 (11:15 -0200)
commit51a763989975504d86d6ccc0c9bf3742a03f37f9
tree93fa71aec7f36afe3106a3ca4a9649112efb01e8
parent243957fd2c3cd07da2691ab8e5a27f911d86619d
[media] v4l: omap_vout: Don't free buffers if they haven't been allocated

The VRFB buffers are freed when the device is closed even if they
haven't been allocated by a call to VIDIOC_REQBUFS, resulting in a
crash. Fix it by not trying to free buffers that are not allocated.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap/omap_vout_vrfb.c