libxl: Do not try to destroy domain -1 on failed create
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 1 Jul 2015 14:20:03 +0000 (15:20 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 1 Jul 2015 14:42:41 +0000 (15:42 +0100)
commit3d55a179fac1f4463142386122eff7d254e1788d
tree7bc1924b416cfb6cbe26469421e3d429e5100f98
parent28e5d9a9ad8e7e1a50503ec97ce9d20cd451a5d1
libxl: Do not try to destroy domain -1 on failed create

Perhaps since f0c4c53f "libxl: domain create: Do not destroy on ao
abort", we have destroyed guest_domid==-1 if domain creation fails
without actually creating a domid.

Reported-by: Julien Grall <julien.grall@citrix.com>
CC: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_create.c