V4L: Fix VIDIOCGAP corruption in ivtv
Frank Bennett reported that ivtv was causing skype to crash. With help
from one of their developers he showed it was a kernel problem.
VIDIOCGCAP copies a name into a fixed length buffer - ivtv uses names
that are too long and does not truncate them so corrupts a few bytes of
the app data area.
Possibly the names also want trimming but for now this should fix the
Signed-off-by: Alan Cox <firstname.lastname@example.org>
Signed-off-by: Hans Verkuil <email@example.com>
Signed-off-by: Mauro Carvalho Chehab <firstname.lastname@example.org>
Signed-off-by: Michael Krufky <email@example.com>
(cherry picked from commit d2b213f7b76f187c4391079c7581d3a08b940133)
Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>