From cab2ed7474bffafd2a68a885e03b85526194abcd Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Sat, 11 Apr 2015 17:41:04 +0900 Subject: [PATCH] ALSA: ctl: fill identical information to return value when adding userspace elements currently some members related identical information are not fiiled in returned parameter of SNDRV_CTL_IOCTL_ELEM_ADD. This is not better for userspace application. This commit copies information to returned value. When failing to copy into userspace, the added elements are going to be removed. Then, no applications can lock these elements between adding and removing because these are already locked. Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai --- Reading git-format-patch failed