[PATCH] alsa: fix error paths in snd_ctl_elem_add()
commit2fbf182ed00a71c35e53329c2010df2baf8a89c6
authorTakashi Iwai <takashi.iwai@gmail.com>
Mon, 6 Mar 2006 23:42:51 +0000 (6 15:42 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 02:40:44 +0000 (6 18:40 -0800)
tree5b66a27b68a28b3b9f7e308519cc72315e69f4e7
parent5aee405c662ca644980c184774277fc6d0769a84
[PATCH] alsa: fix error paths in snd_ctl_elem_add()

Fix bugs in error paths of snd_ctl_elem_add()
 - NULL reference
 - double free (already freed in snd_ctl_add())

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/core/control.c