[media] ivtv: add missing v4l2_fh_exit
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 12 Mar 2011 09:39:44 +0000 (06:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 19:38:11 +0000 (16:38 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-fileops.c

index 4463bf4ec4ee44685bb04b023c55028447e084a7..a7f54b010a5c705e1fd0320b1f9aaaaf8ec8f7aa 100644 (file)
@@ -980,6 +980,7 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp)
                /* Try to claim this stream */
                if (ivtv_claim_stream(item, item->type)) {
                        /* No, it's already in use */
+                       v4l2_fh_exit(&item->fh);
                        kfree(item);
                        return -EBUSY;
                }