Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113884
b: refs/heads/master
c: 6ea9a18
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 7fda112 commit 8504812
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 20c104d0a4d055cfa3df4fcbae818f8e10bd541a
refs/heads/master: 6ea9a1829a89515c1866151b1fdca7ee612d1490
7 changes: 5 additions & 2 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ static void v4l2_chardev_release(struct kobject *kobj)
struct video_device *vfd = container_of(kobj, struct video_device, cdev.kobj);

mutex_lock(&videodev_lock);
if (video_device[vfd->minor] != vfd)
panic("videodev: bad release");
if (video_device[vfd->minor] != vfd) {
mutex_unlock(&videodev_lock);
BUG();
return;
}

/* Free up this device for reuse */
video_device[vfd->minor] = NULL;
Expand Down

0 comments on commit 8504812

Please sign in to comment.