Commit bd0185ce authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai

sound: serial-u16550: fix buffer overflow

Remove most of the serial port parameters from the card longname string
because it was way too long and overflowed into the mixername string.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3f68165e
...@@ -963,16 +963,11 @@ static int __devinit snd_serial_probe(struct platform_device *devptr) ...@@ -963,16 +963,11 @@ static int __devinit snd_serial_probe(struct platform_device *devptr)
if (err < 0) if (err < 0)
goto _err; goto _err;
sprintf(card->longname, "%s at 0x%lx, irq %d speed %d div %d outs %d ins %d adaptor %s droponfull %d", sprintf(card->longname, "%s [%s] at %#lx, irq %d",
card->shortname, card->shortname,
uart->base,
uart->irq,
uart->speed,
(int)uart->divisor,
outs[dev],
ins[dev],
adaptor_names[uart->adaptor], adaptor_names[uart->adaptor],
uart->drop_on_full); uart->base,
uart->irq);
snd_card_set_dev(card, &devptr->dev); snd_card_set_dev(card, &devptr->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment