]> 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)
commit6b778f191d46134bc8193dd4f8a07b3388761220
tree495e9483101f413210a03194ddeafa8a1b213030
parentcc6c2bb36db6ec7d0b8aa2c81de0b869d0b4aca5
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