sound: snd_ctl_remove_user_ctl: prevent removal of kernel controls
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Aug 2009 10:28:09 +0000 (12:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2009 10:48:21 +0000 (12:48 +0200)
Ensure that userspace can remove only user controls.  Controls created
by kernel drivers must not be removed because they might be referenced
in calls to snd_ctl_notify().

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c

Simple merge