]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda/proc - Fix racy string access for power states
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2015 12:57:32 +0000 (14:57 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2015 13:12:04 +0000 (15:12 +0200)
commit1d260d7b3b03f96dfbc9781ec046edc729220f09
treee4b17d933d66eae40dfd5c62f357dd9c057254d1
parentcc75cdfe1d64585d82013632b81199b1e9f1da97
ALSA: hda/proc - Fix racy string access for power states

The power states in a proc file are printed in a racy manner on a
single static string buffer.  Fix it by calling snd_iprintf() directly
for each state instead of processing on a temporary buffer.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_proc.c