]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
libxc: fix uninitialised usage of rc in meminit_hvm
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 4 Feb 2016 15:25:50 +0000 (15:25 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 4 Feb 2016 15:26:12 +0000 (15:26 +0000)
commit1ac81bb7166b79b6555290547d4effff305c74d0
tree799aba518177d6d9af54c6124443f6643dd29a3d
parent3237645813d768e0f766cb53aa376d8bab106375
libxc: fix uninitialised usage of rc in meminit_hvm

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.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_x86.c