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
..
2006-09-10 13:45:53 -03:00
2006-07-29 17:22:31 -03:00
2006-09-10 13:45:58 -03:00
2006-08-08 15:53:03 -03:00
2006-06-30 15:59:29 -03:00
2006-06-25 02:05:04 -03:00
2006-03-25 09:29:23 -03:00
2006-07-29 17:22:37 -03:00
2006-08-08 15:53:03 -03:00
2006-09-10 13:45:58 -03:00
2006-06-25 02:05:04 -03:00
2006-07-29 17:22:31 -03:00
2006-06-25 02:05:04 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-06-30 19:25:36 +02:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-06-25 01:59:28 -03:00
2006-01-13 14:10:19 -02:00
2005-09-09 13:57:49 -07:00
2006-06-25 02:05:10 -03:00
2006-02-07 06:49:14 -02:00
2006-06-25 02:05:05 -03:00
2006-08-08 13:55:01 -03:00
2006-06-30 19:25:36 +02:00
2006-06-25 02:05:06 -03:00
2006-06-30 19:25:36 +02:00
2006-06-25 02:05:05 -03:00
2006-03-24 16:27:00 -03:00
2006-03-25 09:29:23 -03:00
2006-06-27 00:17:40 -03:00
2006-03-25 09:29:04 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-03-21 08:53:57 -08:00
2006-03-24 16:26:49 -03:00
2006-03-21 08:53:57 -08:00
2006-03-21 08:53:57 -08:00
2005-04-16 15:20:36 -07:00
2006-01-11 19:40:56 -02:00
2005-11-07 18:05:41 +00:00
2006-06-25 02:00:28 -03:00
2006-09-10 13:46:01 -03:00
2006-06-25 01:59:28 -03:00
2006-06-25 01:59:28 -03:00
2006-08-08 15:53:04 -03:00
2006-07-02 13:58:50 -07:00
2006-06-30 19:25:36 +02:00
2006-07-29 17:22:30 -03:00
2006-06-30 15:59:30 -03:00
2006-08-08 15:53:03 -03:00
2006-01-15 21:25:32 -02:00
2006-03-24 16:26:58 -03:00
2006-03-21 08:53:57 -08:00
2006-06-30 19:25:36 +02:00
2006-06-25 02:05:05 -03:00
2006-06-25 02:05:05 -03:00
2006-03-25 09:29:23 -03:00
2006-06-25 02:05:10 -03:00
2006-03-23 14:21:55 -08:00
2006-06-25 02:05:05 -03:00
2005-04-16 15:20:36 -07:00
2006-06-25 02:05:05 -03:00
2006-03-24 16:26:51 -03:00
2006-06-25 02:05:05 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-06-25 02:05:22 -03:00
2006-03-25 09:29:23 -03:00
2006-06-25 02:05:09 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-01-11 19:40:56 -02:00
2005-11-07 18:05:41 +00:00
2006-03-25 09:29:23 -03:00
2006-06-30 19:25:36 +02:00
2006-06-25 02:05:05 -03:00
2006-07-29 17:22:14 -03:00
2006-06-30 19:25:36 +02:00
2006-03-25 09:29:23 -03:00
2006-03-24 16:26:56 -03:00
2006-03-03 14:18:07 -03:00
2006-03-25 09:29:23 -03:00
2006-03-24 16:26:51 -03:00
2006-06-25 02:05:10 -03:00
2006-06-30 15:59:32 -03:00
2006-06-25 01:57:39 -03:00
2006-03-25 09:29:23 -03:00
2005-04-16 15:20:36 -07:00
2006-03-25 09:29:23 -03:00
2006-03-24 16:26:51 -03:00
2006-06-25 02:05:00 -03:00
2006-06-25 02:05:05 -03:00
2006-07-29 17:22:30 -03:00
2006-07-29 17:22:20 -03:00
2006-09-10 13:45:48 -03:00
2006-06-30 19:25:36 +02:00
2006-06-30 15:59:53 -03:00
2006-06-25 01:59:57 -03:00
2006-01-23 17:11:05 -02:00
2006-06-25 01:57:38 -03:00
2006-04-02 04:55:52 -03:00
2006-04-02 04:55:51 -03:00
2006-08-08 15:53:04 -03:00
2006-08-08 13:55:07 -03:00
2006-06-25 01:57:55 -03:00
2006-04-02 04:55:12 -03:00
2006-06-30 19:25:36 +02:00
2006-06-30 15:59:30 -03:00
2006-09-25 17:38:36 -07:00
2006-06-25 02:05:05 -03:00
2005-09-07 16:58:01 -07:00
2006-08-08 13:55:07 -03:00
2006-06-25 02:05:05 -03:00
2006-06-25 02:05:05 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2006-06-30 19:25:36 +02:00
2006-04-02 04:55:45 -03:00
2006-03-24 16:27:00 -03:00
2006-07-02 13:58:50 -07:00
2006-03-25 09:29:23 -03:00
2006-06-30 19:25:36 +02:00
2006-03-25 09:29:23 -03:00
2006-09-10 13:45:55 -03:00
2006-06-30 19:25:36 +02:00
2006-03-25 09:29:23 -03:00
2006-09-10 13:45:55 -03:00
2006-03-25 09:29:23 -03:00
2005-04-16 15:20:36 -07:00
2006-03-25 09:29:23 -03:00
2005-04-16 15:20:36 -07:00
2006-03-25 09:29:23 -03:00
2006-03-25 09:29:23 -03:00
2005-04-16 15:20:36 -07:00
2006-03-08 12:30:19 -03:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2006-07-02 13:58:50 -07:00
2006-03-25 09:29:23 -03:00