diff options
Diffstat (limited to 'drivers/media/video/stv680.c')
-rw-r--r-- | drivers/media/video/stv680.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c index dce947439459..b21a8d6827c4 100644 --- a/drivers/media/video/stv680.c +++ b/drivers/media/video/stv680.c | |||
@@ -1086,6 +1086,7 @@ static int stv_open (struct inode *inode, struct file *file) | |||
1086 | int err = 0; | 1086 | int err = 0; |
1087 | 1087 | ||
1088 | /* we are called with the BKL held */ | 1088 | /* we are called with the BKL held */ |
1089 | lock_kernel(); | ||
1089 | stv680->user = 1; | 1090 | stv680->user = 1; |
1090 | err = stv_init (stv680); /* main initialization routine for camera */ | 1091 | err = stv_init (stv680); /* main initialization routine for camera */ |
1091 | 1092 | ||
@@ -1099,6 +1100,7 @@ static int stv_open (struct inode *inode, struct file *file) | |||
1099 | } | 1100 | } |
1100 | if (err) | 1101 | if (err) |
1101 | stv680->user = 0; | 1102 | stv680->user = 0; |
1103 | unlock_kernel(); | ||
1102 | 1104 | ||
1103 | return err; | 1105 | return err; |
1104 | } | 1106 | } |