libxl: fix cleanup bug in initiate_domain_create()
authorPaweł Marczewski <pawel@invisiblethingslab.com>
Fri, 13 Mar 2020 11:25:10 +0000 (11:25 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 13 Mar 2020 11:33:40 +0000 (11:33 +0000)
commitd094e95fb7c61c5f46d8e446b4bdc028438dea1c
tree691e109590869894c6f67ab90d4e4be95c37f588
parent76416c459c6e0b3579c5177df414e0633b8b9565
libxl: fix cleanup bug in initiate_domain_create()

In case of errors, we immediately call domcreate_complete()
which cleans up the console_xswait object. Make sure it is initialized
before we start cleanup.

Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c