tools/libxc: Adjust error handling in map_p2m_list() to fix CentOS 7 build
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Jan 2016 14:38:03 +0000 (14:38 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 Jan 2016 15:16:22 +0000 (15:16 +0000)
commitce95dc84e3a28716997be92e2ad85d3e70dbb73a
treedc10ee68a75fa9478f18f27637d9d7b4c82c4192
parent75904ac35f589b420d6d30415a64888b121d6484
tools/libxc: Adjust error handling in map_p2m_list() to fix CentOS 7 build

The "goto err;" for malloc() error handling would cause the cleanup code
to use 'ptes' before it had been initialised, and causing a build
failure because of -Werror=maybe-uninitialised.

Use "goto err;" consistently for all error handling.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_sr_save_x86_pv.c