ALSA: x86: Fix driver name string overflow
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 11:14:04 +0000 (12:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 11:33:20 +0000 (12:33 +0100)
commit873ab035752e62a90eaeb1daf88a44dad1da6ea0
tree6199bfcd9207ae1adcabb52ab14b86489ee40213
parent075a1d46bed386138eb51f92a6a3130c82fdefec
ALSA: x86: Fix driver name string overflow

The driver sets card->driver name string over its size (16 bytes).
Shorten the name string to fit with it.

Also, set more verbose string to card->shortname and ->longname.
This doesn't have to be identical with card->driver at all.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_lpe_audio.h