Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44730
b: refs/heads/master
c: c13893d
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Jaroslav Kysela committed Dec 20, 2006
1 parent 33cb4cd commit 1631ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a48bb28c167b5cad1bd4978dbb83c89252caab78
refs/heads/master: c13893d7be4f159b359a1b7ee46b3646ecb2fe20
4 changes: 3 additions & 1 deletion trunk/sound/core/rawmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ static int snd_rawmidi_alloc_substreams(struct snd_rawmidi *rmidi,
struct snd_rawmidi_substream *substream;
int idx;

INIT_LIST_HEAD(&stream->substreams);
for (idx = 0; idx < count; idx++) {
substream = kzalloc(sizeof(*substream), GFP_KERNEL);
if (substream == NULL) {
Expand Down Expand Up @@ -1440,6 +1439,9 @@ int snd_rawmidi_new(struct snd_card *card, char *id, int device,
rmidi->device = device;
mutex_init(&rmidi->open_mutex);
init_waitqueue_head(&rmidi->open_wait);
INIT_LIST_HEAD(&rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT].substreams);
INIT_LIST_HEAD(&rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT].substreams);

if (id != NULL)
strlcpy(rmidi->id, id, sizeof(rmidi->id));
if ((err = snd_rawmidi_alloc_substreams(rmidi,
Expand Down

0 comments on commit 1631ea6

Please sign in to comment.