shareable: Bug fix: forceShared should allocate backend as shareable

This commit is contained in:
Hajime Hoshi 2018-07-29 23:49:53 +09:00
parent 8a221a5774
commit 0bf62f392f

View File

@ -141,7 +141,7 @@ func (i *Image) ensureNotShared() {
func (i *Image) forceShared() {
if i.backend == nil {
i.allocate(false)
i.allocate(true)
return
}