projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7fbefe
)
V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c
author
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 13 Sep 2006 16:26:11 +0000
(13:26 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Tue, 26 Sep 2006 15:30:36 +0000
(12:30 -0300)
Do not return -EINVAL for index=0 in VIDIOC_ENUMSTD, because it is a
valid index
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videodev.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/videodev.c
b/drivers/media/video/videodev.c
index 2299e294e8df342e441b9b8b3469b32e6d92dade..26e7ea252a0e5441ed7a6f43999336e89b1e5f91 100644
(file)
--- a/
drivers/media/video/videodev.c
+++ b/
drivers/media/video/videodev.c
@@
-836,7
+836,7
@@
static int __video_do_ioctl(struct inode *inode, struct file *file,
break;
}
- if (index
<
0 || index >= vfd->tvnormsize) {
+ if (index
<
0 || index >= vfd->tvnormsize) {
ret=-EINVAL;
break;
}