aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cpia2/cpia2_v4l.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c
index 28d93c595df0..d129db57fcd4 100644
--- a/drivers/media/video/cpia2/cpia2_v4l.c
+++ b/drivers/media/video/cpia2/cpia2_v4l.c
@@ -343,7 +343,9 @@ static int cpia2_close(struct inode *inode, struct file *file)
343 cpia2_free_buffers(cam); 343 cpia2_free_buffers(cam);
344 if (!cam->present) { 344 if (!cam->present) {
345 video_unregister_device(dev); 345 video_unregister_device(dev);
346 mutex_unlock(&cam->busy_lock);
346 kfree(cam); 347 kfree(cam);
348 return 0;
347 } 349 }
348 } 350 }
349 351