diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-12 14:01:27 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-12 14:01:27 +0100 |
commit | 2f9fd22f509da9ab5135c602892712bec07d8631 (patch) | |
tree | dc665f1b3049928651c221aebff87f45d507fedd /tools/libfsimage | |
parent | 498d19e3a652470a1de4d5ebe9bdf3be3aa12375 (diff) | |
download | xen-2f9fd22f509da9ab5135c602892712bec07d8631.tar.gz xen-2f9fd22f509da9ab5135c602892712bec07d8631.tar.bz2 xen-2f9fd22f509da9ab5135c602892712bec07d8631.zip |
xen: Fix failure paths for xentrace
Problems this addresses:
* After the allocation of t_info fails, the path the code takes tries
to free t_info. Jump past that part instead.
* The failure code assumes that unused data is zero; but the structure
is never initialized. Zero the structure before using it.
* The t_info pages are shared with dom0 before we know that the whole
operation will succeed, and not un-shared afterwards. Don't share the
pages until we know the whole thing will succeed.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/libfsimage')
0 files changed, 0 insertions, 0 deletions