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)
commite79d74ab25339437447478e4dfe2b35c5b560512
tree2eb582fd7f327b84dac46d96b769274c0b77bb24
parente6826ef14597981f78156a0d5f9553b19f356e3f
ALSA: control: Fix breakage of user ctl element addition

In the commit [2225e79b9b03: '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: 2225e79b9b03 ('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