aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx231xx/cx231xx-audio.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-22 11:39:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-17 23:51:17 -0400
commit935539c97ed5f4f46867e7f44e42ad2048403f4e (patch)
treeeddb94544938742bd24336b709e77b969b3b6db8 /drivers/media/video/cx231xx/cx231xx-audio.c
parentf2466d63a51db8244d3e78a4e6210d72a8930cfb (diff)
V4L/DVB: cx231xx: card->driver "Conexant cx231xx Audio" too long
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>
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-audio.c')
-rw-r--r--drivers/media/video/cx231xx/cx231xx-audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-audio.c b/drivers/media/video/cx231xx/cx231xx-audio.c
index 7793d60966db..7cae95a2245e 100644
--- a/drivers/media/video/cx231xx/cx231xx-audio.c
+++ b/drivers/media/video/cx231xx/cx231xx-audio.c
@@ -495,7 +495,7 @@ static int cx231xx_audio_init(struct cx231xx *dev)
495 pcm->info_flags = 0; 495 pcm->info_flags = 0;
496 pcm->private_data = dev; 496 pcm->private_data = dev;
497 strcpy(pcm->name, "Conexant cx231xx Capture"); 497 strcpy(pcm->name, "Conexant cx231xx Capture");
498 strcpy(card->driver, "Conexant cx231xx Audio"); 498 strcpy(card->driver, "Cx231xx-Audio");
499 strcpy(card->shortname, "Cx231xx Audio"); 499 strcpy(card->shortname, "Cx231xx Audio");
500 strcpy(card->longname, "Conexant cx231xx Audio"); 500 strcpy(card->longname, "Conexant cx231xx Audio");
501 501