From f7ed97a6303787983f6f01f72afff74e7d2b0690 Mon Sep 17 00:00:00 2001
From: Antonio Murdaca <runcom@redhat.com>
Date: Sun, 13 Dec 2015 16:39:41 +0100
Subject: [PATCH] layer: layer_store.go: return on error

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
---
 layer/layer_store.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layer/layer_store.go b/layer/layer_store.go
index a5f9523d3f..1faf8065de 100644
--- a/layer/layer_store.go
+++ b/layer/layer_store.go
@@ -423,7 +423,7 @@ func (ls *layerStore) initMount(graphID, parent, mountLabel string, initFunc Mou
 	initID := fmt.Sprintf("%s-init", graphID)
 
 	if err := ls.driver.Create(initID, parent, mountLabel); err != nil {
-
+		return "", err
 	}
 	p, err := ls.driver.Get(initID, "")
 	if err != nil {