V4L/DVB: em28xx: "Empia Em28xx Audio" too long
authorDan Carpenter <error27@gmail.com>
Tue, 23 Mar 2010 11:40:43 +0000 (08:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:51:18 +0000 (00:51 -0300)
card->driver is 15 characters and a NULL.  The original code
goes past the end of the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-audio.c

index bd783387b37d0cf99bba5701b185ad6cbfde4e41..e182abf476c9af93c404d16ddd49290bd04c4749 100644 (file)
@@ -491,7 +491,7 @@ static int em28xx_audio_init(struct em28xx *dev)
        strcpy(pcm->name, "Empia 28xx Capture");
 
        snd_card_set_dev(card, &dev->udev->dev);
-       strcpy(card->driver, "Empia Em28xx Audio");
+       strcpy(card->driver, "Em28xx-Audio");
        strcpy(card->shortname, "Em28xx Audio");
        strcpy(card->longname, "Empia Em28xx Audio");