Commit 0ac2053f authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix NULL pointer access

MIXART driver
Fixed NULL pointer access when id string isn't given.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e36a6e0b
......@@ -1352,7 +1352,7 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci,
idx = index[dev];
else
idx = index[dev] + i;
snprintf(tmpid, sizeof(tmpid), "%s-%d", id[dev], i);
snprintf(tmpid, sizeof(tmpid), "%s-%d", id[dev] ? id[dev] : "MIXART", i);
card = snd_card_new(idx, tmpid, THIS_MODULE, 0);
if (! card) {
......
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