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

In the commit [497893f99d5b: '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: 497893f99d5b ('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