Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124439
b: refs/heads/master
c: 806e5b7
h: refs/heads/master
i:
  124437: 3bead81
  124435: a5ffb18
  124431: f5ab647
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 567e9af commit 3cf862f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: cfbd3072890e119639b97a133d84c13d25bba034
refs/heads/master: 806e5b7cfa96195baadc4cc4663266aaac92e22b
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ static int get_index(struct video_device *vdev, int num)
return -EINVAL;
}

/* Some drivers do not set the parent. In that case always return 0. */
if (vdev->parent == NULL)
return 0;

for (i = 0; i < VIDEO_NUM_DEVICES; i++) {
if (video_device[i] != NULL &&
video_device[i] != vdev &&
Expand Down

0 comments on commit 3cf862f

Please sign in to comment.