[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 4463bf4..a7f54b0 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;
                }