]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix and neaten print_nid_path/debug_badness
authorJoe Perches <joe@perches.com>
Sat, 5 Jul 2014 20:02:02 +0000 (13:02 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Jul 2014 07:34:16 +0000 (09:34 +0200)
commit76c2250566450a10f5b7201bebc25fe945f4da70
tree495e9483101f413210a03194ddeafa8a1b213030
parente53cdf09d6c5b0568010a1cd796080bd4723425e
ALSA: hda - Fix and neaten print_nid_path/debug_badness

print_nid_path has a possible buffer overflow if
struct nid_path.path values are > 256.

Avoid this and neaten the output to remove the leading ':'

Neaten debug_badness to always verify arguments.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c