Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210495
b: refs/heads/master
c: a7a13d0
h: refs/heads/master
i:
  210493: ef095e4
  210491: b67ecb8
  210487: 809ea68
  210479: e632fbc
  210463: e9c0840
  210431: 45cf26c
v: v3
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed Sep 9, 2010
1 parent 16ad6ff commit 8f5fc53
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 27f7ad53829f79e799a253285318bff79ece15bd
refs/heads/master: a7a13d0676335a7dc9dd72264cca02606e43aaba
2 changes: 2 additions & 0 deletions trunk/sound/core/rawmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ static int snd_rawmidi_control_ioctl(struct snd_card *card,

if (get_user(device, (int __user *)argp))
return -EFAULT;
if (device >= SNDRV_RAWMIDI_DEVICES) /* next device is -1 */
device = SNDRV_RAWMIDI_DEVICES - 1;
mutex_lock(&register_mutex);
device = device < 0 ? 0 : device + 1;
while (device < SNDRV_RAWMIDI_DEVICES) {
Expand Down

0 comments on commit 8f5fc53

Please sign in to comment.