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)
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

Simple merge