From: Dan Carpenter Date: Mon, 22 Mar 2010 15:39:09 +0000 (-0300) Subject: V4L/DVB: cx231xx: card->driver "Conexant cx231xx Audio" too long X-Git-Tag: MMI-PSA29.97-13-9~23880^2~309 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=935539c97ed5f4f46867e7f44e42ad2048403f4e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Takashi Iwai Signed-off-by: Mauro Carvalho Chehab --- 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) 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");