Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253249
b: refs/heads/master
c: 8c89ddd
h: refs/heads/master
i:
  253247: d9397e7
v: v3
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Jun 1, 2011
1 parent b75fff9 commit c831bc3
Show file tree
Hide file tree
Showing 2 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: 67e27c741339faedcc8e9c2c613487745d1c4b8b
refs/heads/master: 8c89ddd536bbe97c1e50424778a139abbf5763c3
4 changes: 2 additions & 2 deletions trunk/drivers/media/media-devnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ int __must_check media_devnode_register(struct media_devnode *mdev)

/* Part 1: Find a free minor number */
mutex_lock(&media_devnode_lock);
minor = find_next_zero_bit(media_devnode_nums, 0, MEDIA_NUM_DEVICES);
minor = find_next_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES, 0);
if (minor == MEDIA_NUM_DEVICES) {
mutex_unlock(&media_devnode_lock);
printk(KERN_ERR "could not get a free minor\n");
return -ENFILE;
}

set_bit(mdev->minor, media_devnode_nums);
set_bit(minor, media_devnode_nums);
mutex_unlock(&media_devnode_lock);

mdev->minor = minor;
Expand Down

0 comments on commit c831bc3

Please sign in to comment.