Add check for the .tuner parameter in VIDIOC_G_FREQUENCY.
--- em28xx-new/em28xx-video.c.orig 2009-01-31 07:48:55.000000000 +0100 +++ em28xx-new/em28xx-video.c 2009-01-31 10:05:40.000000000 +0100 @@ -2289,6 +2289,9 @@ { struct v4l2_frequency *f = arg; + if (f->tuner != 0) + return -EINVAL; + memset(f, 0, sizeof(*f)); switch (fh->type) { case EM28XX_RADIO:
_______________________________________________ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx