Commit c93a5c34 authored by Sascha Hauer's avatar Sascha Hauer Committed by Mauro Carvalho Chehab

V4L/DVB (4622): Copy-paste bug in videodev.c

This patch fixes a copy-paste bug in videodev.c where the vidioc_qbuf()
function gets called for the dqbuf ioctl.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 5ab6b267
...@@ -739,13 +739,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, ...@@ -739,13 +739,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
case VIDIOC_DQBUF: case VIDIOC_DQBUF:
{ {
struct v4l2_buffer *p=arg; struct v4l2_buffer *p=arg;
if (!vfd->vidioc_qbuf) if (!vfd->vidioc_dqbuf)
break; break;
ret = check_fmt (vfd, p->type); ret = check_fmt (vfd, p->type);
if (ret) if (ret)
break; break;
ret=vfd->vidioc_qbuf(file, fh, p); ret=vfd->vidioc_dqbuf(file, fh, p);
if (!ret) if (!ret)
dbgbuf(cmd,vfd,p); dbgbuf(cmd,vfd,p);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment