Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170097
b: refs/heads/master
c: 02bb57a
h: refs/heads/master
i:
  170095: fc168e0
v: v3
  • Loading branch information
Roel Kluin authored and Takashi Iwai committed Nov 16, 2009
1 parent 9dea13b commit e25db63
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 0c3c35e148dbc03106038dd25816fb9f3a084d86
refs/heads/master: 02bb57aeb092cbb0dfdb50c6026dbd0c60af7644
2 changes: 1 addition & 1 deletion trunk/sound/oss/midi_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ midi_synth_open(int dev, int mode)
int err;
struct midi_input_info *inc;

if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL)
if (orig_dev < 0 || orig_dev >= num_midis || midi_devs[orig_dev] == NULL)
return -ENXIO;

midi2synth[orig_dev] = dev;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/oss/mpu401.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ static int mpu_synth_ioctl(int dev, unsigned int cmd, void __user *arg)

midi_dev = synth_devs[dev]->midi_dev;

if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL)
if (midi_dev < 0 || midi_dev >= num_midis || midi_devs[midi_dev] == NULL)
return -ENXIO;

devc = &dev_conf[midi_dev];
Expand Down

0 comments on commit e25db63

Please sign in to comment.