Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92067
b: refs/heads/master
c: c354cd7
h: refs/heads/master
i:
  92065: 6534bf4
  92063: 07a1c63
v: v3
  • Loading branch information
Takashi Iwai committed Apr 24, 2008
1 parent 9b99b19 commit 4f40440
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 87218e9c6e7f7908baf98030b6d724e14aa8b5cd
refs/heads/master: c354cd7d9627930dcfbcff8355d422fa1bca948a
9 changes: 7 additions & 2 deletions trunk/sound/core/seq/oss/seq_oss_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,13 @@ snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp)
info->nr_voices = rec->nr_voices;
if (info->nr_voices > 0) {
info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
if (!info->ch)
BUG();
if (!info->ch) {
snd_printk(KERN_ERR "Cannot malloc\n");
rec->oper.close(&info->arg);
module_put(rec->oper.owner);
snd_use_lock_free(&rec->use_lock);
continue;
}
reset_channels(info);
}
debug_printk(("synth %d assigned\n", i));
Expand Down

0 comments on commit 4f40440

Please sign in to comment.