diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-23 12:40:43 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-18 05:51:18 +0200 |
commit | 4a3eaee4d0d2724d86cbb18ad4b0088ce0b7f8a2 (patch) | |
tree | 60d56a650f8c1126fdc662c48ec51d01d0ad00d1 /drivers/media/video/em28xx | |
parent | V4L/DVB: cx231xx: card->driver "Conexant cx231xx Audio" too long (diff) | |
download | linux-4a3eaee4d0d2724d86cbb18ad4b0088ce0b7f8a2.tar.xz linux-4a3eaee4d0d2724d86cbb18ad4b0088ce0b7f8a2.zip |
V4L/DVB: em28xx: "Empia Em28xx Audio" too long
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>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-audio.c b/drivers/media/video/em28xx/em28xx-audio.c index bd783387b37d..e182abf476c9 100644 --- a/drivers/media/video/em28xx/em28xx-audio.c +++ b/drivers/media/video/em28xx/em28xx-audio.c @@ -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"); |