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)
commit18dd0aa5afea7dc33953aa87de696e39074bbf78
tree59c3304f340c8ba180002c99c8961b388bf84fb0
parentf217ac59b6dd73105abc13da3fe656391fa6d135
sound: snd_ctl_remove_user_ctl: prevent removal of kernel controls

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