Re: [Xen-devel] [PATCH v2] libxc: fix uninitialised usage of rc in meminit_hvm

2016-02-04 Thread Ian Campbell
On Wed, 2016-02-03 at 14:21 +0100, Roger Pau Monne wrote: > From: Roger Pau Monne I dropped this as discussed on IRC. > Due to the HVMlite changes there's a chance that the value in rc is > checked > without being initialised. Fix this by initialising it to 0 prior to the > while loop. Also add

[Xen-devel] [PATCH v2] libxc: fix uninitialised usage of rc in meminit_hvm

2016-02-03 Thread Roger Pau Monne
From: Roger Pau Monne Due to the HVMlite changes there's a chance that the value in rc is checked without being initialised. Fix this by initialising it to 0 prior to the while loop. Also add a specific error check to a previous populate_physmap call, this prevents us from overwriting this error.