exec: fix early return from ram_block_add
commit39c350ee12e733070e63d64a21bd42607366ea99
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Mar 2016 17:14:01 +0000 (9 18:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2016 17:23:33 +0000 (15 18:23 +0100)
treea012cac68570005ddea9023903e562d8b15bb731
parente1fb6471999939539ecfb21b41cbbb24047fa4dc
exec: fix early return from ram_block_add

After reporting an error, ram_block_add was going on with the registration
of the RAMBlock.  The visible effect is that it unlocked the ramlist
mutex twice.

Fixes: 528f46af6ecd1e300db18684969104d4067b867b
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c