[media] s5p-fimc: Correct memory allocation for VIDIOC_CREATE_BUFS
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sun, 22 Apr 2012 20:07:09 +0000 (17:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 12:11:32 +0000 (09:11 -0300)
commit63746be543db923a8337e26c4723e65c38a99dc7
treef9f38c304d03b5c2ec5027d60a27eb87b88d7483
parente985dbf7d93e2a3e114b4525413e50f83613e0cb
[media] s5p-fimc: Correct memory allocation for VIDIOC_CREATE_BUFS

The commit 3b4c34aac7abea4754059084d0eef667a1993ac8
"s5p-fimc: Add support for VIDIOC_PREPARE_BUF/CREATE_BUFS ioctls"
added a handler for VIDIOC_CREATE_BUFS ioctl, but the queue_setup
callback wasn't updated to properly interpret the pixel format.
In this situation memory corruption may happen with VIDIOC_CREATE_BUFS
ioctl. Update the queue_setup op to fix this.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c
drivers/media/video/s5p-fimc/fimc-core.c
drivers/media/video/s5p-fimc/fimc-core.h