diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-19 09:14:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-05 21:24:11 -0400 |
commit | 96b1a70226cd43f69c63a7ba2a769bece08cf64e (patch) | |
tree | c904db91e2b892258370cab292e44e7550ddc0d3 /drivers/media/v4l2-core | |
parent | 3c0b60618118745220bc0f9bf27e51e37367427c (diff) |
[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>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 9d3e46c446ad..16205d9bddfc 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c | |||
@@ -2188,6 +2188,7 @@ static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, | |||
2188 | int ret = 0; | 2188 | int ret = 0; |
2189 | 2189 | ||
2190 | switch (cmd) { | 2190 | switch (cmd) { |
2191 | case VIDIOC_PREPARE_BUF: | ||
2191 | case VIDIOC_QUERYBUF: | 2192 | case VIDIOC_QUERYBUF: |
2192 | case VIDIOC_QBUF: | 2193 | case VIDIOC_QBUF: |
2193 | case VIDIOC_DQBUF: { | 2194 | case VIDIOC_DQBUF: { |