V4L/DVB: cx231xx: card->driver "Conexant cx231xx Audio" too long
authorDan Carpenter <error27@gmail.com>
Mon, 22 Mar 2010 15:39:09 +0000 (12:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:51:17 +0000 (00:51 -0300)
card->driver is 15 characters and a NULL, the original code could
cause a buffer overflow.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-audio.c

index 7793d60966db51fc36fb2de5bde7440030977068..7cae95a2245ebc2866a206da7b6595ba1b1f0f4c 100644 (file)
@@ -495,7 +495,7 @@ static int cx231xx_audio_init(struct cx231xx *dev)
        pcm->info_flags = 0;
        pcm->private_data = dev;
        strcpy(pcm->name, "Conexant cx231xx Capture");
-       strcpy(card->driver, "Conexant cx231xx Audio");
+       strcpy(card->driver, "Cx231xx-Audio");
        strcpy(card->shortname, "Cx231xx Audio");
        strcpy(card->longname, "Conexant cx231xx Audio");