Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242966
b: refs/heads/master
c: a45e3d6
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Mar 25, 2011
1 parent a529722 commit 4f23481
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: b2e65c8e9133218eb28c30e79ddd3d66d4666ba0
refs/heads/master: a45e3d6b13e97506b616980c0f122c3389bcefa4
4 changes: 4 additions & 0 deletions trunk/sound/core/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ int snd_card_file_add(struct snd_card *card, struct file *file)
return -ENOMEM;
mfile->file = file;
mfile->disconnected_f_op = NULL;
INIT_LIST_HEAD(&mfile->shutdown_list);
spin_lock(&card->files_lock);
if (card->shutdown) {
spin_unlock(&card->files_lock);
Expand Down Expand Up @@ -883,6 +884,9 @@ int snd_card_file_remove(struct snd_card *card, struct file *file)
list_for_each_entry(mfile, &card->files_list, list) {
if (mfile->file == file) {
list_del(&mfile->list);
spin_lock(&shutdown_lock);
list_del(&mfile->shutdown_list);
spin_unlock(&shutdown_lock);
if (mfile->disconnected_f_op)
fops_put(mfile->disconnected_f_op);
found = mfile;
Expand Down

0 comments on commit 4f23481

Please sign in to comment.