linux/drivers/media
Jonathan Corbet b7de567bf3 [PATCH] VIDIOC_ENUMSTD bug
The v4l2 API documentation for VIDIOC_ENUMSTD says:

	To enumerate all standards applications shall begin at index
	zero, incrementing by one until the driver returns EINVAL.

The actual code, however, tests the index this way:

               if (index<=0 || index >= vfd->tvnormsize) {
                        ret=-EINVAL;

So any application which passes in index=0 gets EINVAL right off the bat
- and, in fact, this is what happens to mplayer.  So I think the
following patch is called for, and maybe even appropriate for a 2.6.18.x
stable release.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-25 17:38:36 -07:00
..
common V4L/DVB (4494a): Fix compilation when V4L1 support is not present 2006-09-10 13:45:46 -03:00
dvb V4L/DVB (4608b): i2c deps fix on DVB 2006-09-10 13:45:58 -03:00
radio V4L/DVB (4407): Driver dsbr100 is a radio device, not a video one! 2006-08-08 15:52:52 -03:00
video [PATCH] VIDIOC_ENUMSTD bug 2006-09-25 17:38:36 -07:00
Kconfig V4L/DVB (4605): Fixes an issue with V4L1 and make headers-install 2006-09-10 13:45:55 -03:00
Makefile