libxl: do not blunder on if bootloader fails (again)
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 3 Aug 2012 08:54:12 +0000 (09:54 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 3 Aug 2012 08:54:12 +0000 (09:54 +0100)
commit5f672c62102e0136de72fa670d0c2b1b34311dc9
tree9e4fea054563378cf6aa2d62a9d70fc1db36f1fb
parentbfe1e2bcb4f5180379d9b0562d92e99565e209f4
libxl: do not blunder on if bootloader fails (again)

Do not lose the rc value passed to bootloader_callback.  Do not lose
the rc value from the bl when the local disk detach succeeds.

While we're here rationalise the use of bl->rc to make things clearer.
Set it to zero at the start and always update it conditionally; copy
it into bootloader_callback's argument each time.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_bootloader.c