summaryrefslogtreecommitdiff
path: root/drivers/media/rc/ir-rc5-decoder.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2012-08-29 11:22:00 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 19:56:56 (GMT)
commite34db0661dc7945e5412a568f38dd170c78099d1 (patch)
tree073feee74fba84ca16e2914868462a4b563a8a8e /drivers/media/rc/ir-rc5-decoder.c
parentc566c78900acf38d6f2d004674b9cb062bbe3671 (diff)
downloadlinux-fsl-qoriq-e34db0661dc7945e5412a568f38dd170c78099d1.tar.xz
[media] media: coda: set up buffers to be sized as negotiated with s_fmt
This fixes a failure in vb2_qbuf in user pointer mode where __qbuf_userptr checks if the buffer queued by userspace is large enough. The failure would happen if coda_queue_setup was called with empty fmt (and thus set the expected buffer size to the maximum resolution), and userspace queues buffers of smaller size - corresponding to the negotiated dimensions - were queued. Explicitly setting sizeimage to the value negotiated via s_fmt fixes the issue. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Javier Martin <javier.martin@vista-silicon.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/ir-rc5-decoder.c')
0 files changed, 0 insertions, 0 deletions