瀏覽代碼

V4L/DVB (8904): cx88: add missing unlock_kernel

sparse found an unbalanced BKL usage.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil 16 年之前
父節點
當前提交
135aedc38e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/media/video/cx88/cx88-blackbird.c

+ 1 - 0
drivers/media/video/cx88/cx88-blackbird.c

@@ -1070,6 +1070,7 @@ static int mpeg_open(struct inode *inode, struct file *file)
 		err = drv->request_acquire(drv);
 		if(err != 0) {
 			dprintk(1,"%s: Unable to acquire hardware, %d\n", __func__, err);
+			unlock_kernel();
 			return err;
 		}
 	}