Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118700
b: refs/heads/master
c: 74084d3
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed Nov 11, 2008
1 parent 9961821 commit b7f6607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: c7f09db6852d85e7f76322815051aad1c88d08cf
refs/heads/master: 74084d33cb6221a5836a2a4438ec1bcf7a0797b0
6 changes: 1 addition & 5 deletions trunk/drivers/media/video/cafe_ccic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,12 +1476,9 @@ static int cafe_v4l_open(struct inode *inode, struct file *filp)
{
struct cafe_camera *cam;

lock_kernel();
cam = cafe_find_dev(iminor(inode));
if (cam == NULL) {
unlock_kernel();
if (cam == NULL)
return -ENODEV;
}
filp->private_data = cam;

mutex_lock(&cam->s_mutex);
Expand All @@ -1493,7 +1490,6 @@ static int cafe_v4l_open(struct inode *inode, struct file *filp)
}
(cam->users)++;
mutex_unlock(&cam->s_mutex);
unlock_kernel();
return 0;
}

Expand Down

0 comments on commit b7f6607

Please sign in to comment.