浏览代码

[media] ivtv: add missing v4l2_fh_exit

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil 14 年之前
父节点
当前提交
6aff72f6d5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/media/video/ivtv/ivtv-fileops.c

+ 1 - 0
drivers/media/video/ivtv/ivtv-fileops.c

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