diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-10-13 13:23:28 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-13 13:23:28 -0700 |
commit | db8e7e9022e1d6660f249f2e419acaefd497b8c7 (patch) | |
tree | 944c81f92ed98790be3b350d102c8a5ae53af04a | |
parent | 116191c17c2c8e7e7d4fa9d5ed4a3218ff8d2055 (diff) | |
download | lwn-db8e7e9022e1d6660f249f2e419acaefd497b8c7.tar.gz lwn-db8e7e9022e1d6660f249f2e419acaefd497b8c7.zip |
V4L: 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: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/media/video/videodev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index edd7b83c3464..2299e294e8df 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c @@ -739,13 +739,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, case VIDIOC_DQBUF: { struct v4l2_buffer *p=arg; - if (!vfd->vidioc_qbuf) + if (!vfd->vidioc_dqbuf) break; ret = check_fmt (vfd, p->type); if (ret) break; - ret=vfd->vidioc_qbuf(file, fh, p); + ret=vfd->vidioc_dqbuf(file, fh, p); if (!ret) dbgbuf(cmd,vfd,p); break; |