Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157752
b: refs/heads/master
c: 18dd0aa
h: refs/heads/master
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Aug 17, 2009
1 parent f7d34df commit 2ec961c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f217ac59b6dd73105abc13da3fe656391fa6d135
refs/heads/master: 18dd0aa5afea7dc33953aa87de696e39074bbf78
4 changes: 4 additions & 0 deletions trunk/sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ static int snd_ctl_remove_user_ctl(struct snd_ctl_file * file,
ret = -ENOENT;
goto error;
}
if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) {
ret = -EINVAL;
goto error;
}
for (idx = 0; idx < kctl->count; idx++)
if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) {
ret = -EBUSY;
Expand Down

0 comments on commit 2ec961c

Please sign in to comment.