Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193157
b: refs/heads/master
c: aab9796
h: refs/heads/master
i:
  193155: be7f14e
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent e91cdaf commit 509775d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: b9245d80c375b93db79475ca231276e1fa5a7649
refs/heads/master: aab9796f5580a988c46c130a727cdc398a05317b
6 changes: 5 additions & 1 deletion trunk/drivers/media/video/s2255drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,11 +1716,15 @@ static int s2255_open(struct file *file)
dprintk(1, "s2255: open called (dev=%s)\n",
video_device_node_name(vdev));

for (i = 0; i < MAX_CHANNELS; i++)
for (i = 0; i < MAX_CHANNELS; i++) {
if (&dev->vdev[i] == vdev) {
cur_channel = i;
break;
}
}
if (i == MAX_CHANNELS)
return -ENODEV;

/*
* open lock necessary to prevent multiple instances
* of v4l-conf (or other programs) from simultaneously
Expand Down

0 comments on commit 509775d

Please sign in to comment.