Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22774
b: refs/heads/master
c: 3a63e44
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Jaroslav Kysela committed Mar 22, 2006
1 parent 0913802 commit 6755cc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 646494007b48e8897888cd407c2b7d1d69cb2e58
refs/heads/master: 3a63e44420932852efd6a7d6d46cdad4d427f880
4 changes: 2 additions & 2 deletions trunk/sound/core/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void *snd_lookup_minor_data(unsigned int minor, int type)
struct snd_minor *mreg;
void *private_data;

if (minor > ARRAY_SIZE(snd_minors))
if (minor >= ARRAY_SIZE(snd_minors))
return NULL;
mutex_lock(&sound_mutex);
mreg = snd_minors[minor];
Expand All @@ -140,7 +140,7 @@ static int snd_open(struct inode *inode, struct file *file)
struct file_operations *old_fops;
int err = 0;

if (minor > ARRAY_SIZE(snd_minors))
if (minor >= ARRAY_SIZE(snd_minors))
return -ENODEV;
mptr = snd_minors[minor];
if (mptr == NULL) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/core/sound_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void *snd_lookup_oss_minor_data(unsigned int minor, int type)
struct snd_minor *mreg;
void *private_data;

if (minor > ARRAY_SIZE(snd_oss_minors))
if (minor >= ARRAY_SIZE(snd_oss_minors))
return NULL;
mutex_lock(&sound_oss_mutex);
mreg = snd_oss_minors[minor];
Expand Down

0 comments on commit 6755cc5

Please sign in to comment.