[media] v4l2-ioctl.c: handle PREPARE_BUF like QUERYBUF
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 19 Sep 2012 13:14:41 +0000 (10:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 01:24:11 +0000 (22:24 -0300)
commit96b1a70226cd43f69c63a7ba2a769bece08cf64e
treec904db91e2b892258370cab292e44e7550ddc0d3
parent3c0b60618118745220bc0f9bf27e51e37367427c
[media] v4l2-ioctl.c: handle PREPARE_BUF like QUERYBUF

The core code for PREPARE_BUF didn't take the multiplanar case into account,
which might cause page faults. Handle PREPARE_BUF just like QUERYBUF and
QBUF/DQBUF.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-ioctl.c