]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't access invalid substream in proc file
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2009 08:50:28 +0000 (09:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2009 08:50:28 +0000 (09:50 +0100)
commit7abcf84cec958ae5e5cd109e71b1ea37d2ba2f40
tree0f86b5420e6cb1efff31caa0fc6f3ae59d4cdb9d
parent28b40bc2540d2c6bf1605551895abca7975b9c88
ALSA: hda - Don't access invalid substream in proc file

The commit b4cd65fbdc5370304575dca11bb677986ec5ccec
"ALSA: hda - proc - show which I/O NID is associated to PCM device"
introduces the access to substream pointer.  But, PCMs may have no
substreams in one or both directions, and this results in NULL
dereference.  Also, print the first substream number doesn't make
sense.

This patch removes the access to the substream pointer, and reformat
to fit to the standard coding style.

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