]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Fix breakage of user ctl element addition
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Mar 2015 15:57:51 +0000 (16:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Mar 2015 06:21:51 +0000 (07:21 +0100)
commitce77d3cb964f0fba53c8385b7250af889f0101cb
tree2eb582fd7f327b84dac46d96b769274c0b77bb24
parent759b44caa2329050129e2af5334fbf1c43becfe1
ALSA: control: Fix breakage of user ctl element addition

In the commit [015c658a3285: 'ALSA: core: reduce stack usage related
to snd_ctl_new()'], the id field of the newly added kctl is untouched,
thus all attribute like name string remain empty.  The fix is just to
add the forgotten memcpy of the id field.

Fixes: 015c658a3285 ('ALSA: core: reduce stack usage related to snd_ctl_new()')
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c