OSDN Git Service

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)
commitd82353e534847732c4665a21e2ea699713a0e5b0
tree495e9483101f413210a03194ddeafa8a1b213030
parent2f6ba2b31ba9442d2a16aa2a7e1b4116de2de14f
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