瀏覽代碼

[media] davinci: vpif: missing unlocks on error

We recently changed some locking around so we need some new unlocks on
the error paths.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Dan Carpenter 11 年之前
父節點
當前提交
9249196867
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/media/platform/davinci/vpif_capture.c
  2. 1 0
      drivers/media/platform/davinci/vpif_display.c

+ 1 - 0
drivers/media/platform/davinci/vpif_capture.c

@@ -269,6 +269,7 @@ err:
 		list_del(&buf->list);
 		vb2_buffer_done(&buf->vb, VB2_BUF_STATE_QUEUED);
 	}
+	spin_unlock_irqrestore(&common->irqlock, flags);
 
 	return ret;
 }

+ 1 - 0
drivers/media/platform/davinci/vpif_display.c

@@ -233,6 +233,7 @@ err:
 		list_del(&buf->list);
 		vb2_buffer_done(&buf->vb, VB2_BUF_STATE_QUEUED);
 	}
+	spin_unlock_irqrestore(&common->irqlock, flags);
 
 	return ret;
 }