Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47200
b: refs/heads/master
c: 8fa58af
h: refs/heads/master
v: v3
  • Loading branch information
Karsten Wiese authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 257c1c3 commit 47381d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 298a2c753a5ae2f0e230a57e94843d248f0033e2
refs/heads/master: 8fa58af7db56077d6a042fd7b9dd4c9515e1c37b
9 changes: 5 additions & 4 deletions trunk/sound/core/hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,16 @@ static int snd_hwdep_release(struct inode *inode, struct file * file)
int err = -ENXIO;
struct snd_hwdep *hw = file->private_data;
struct module *mod = hw->card->module;

mutex_lock(&hw->open_mutex);
if (hw->ops.release) {
if (hw->ops.release)
err = hw->ops.release(hw, file);
wake_up(&hw->open_wait);
}
if (hw->used > 0)
hw->used--;
snd_card_file_remove(hw->card, file);
mutex_unlock(&hw->open_mutex);
wake_up(&hw->open_wait);

snd_card_file_remove(hw->card, file);
module_put(mod);
return err;
}
Expand Down

0 comments on commit 47381d9

Please sign in to comment.