libxl: don't continue to create the domain if the device model is not spawned

When the device model can't be spawned, rc variable is cleared in
device_model_spawn_outcome (libxl_dm.c).
In this case libxl will continue to create the domain and let it between life
and death.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Julien Grall committed 2013-01-17 13:53:09 +00:00
1 parent 0289e710ca
commit 3a43d9b747
1 file changed
-2
-2
View File
@@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc,
}
}
rc = 0;
out:
dmss->callback(egc, dmss, rc);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.