diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2013-01-25 08:54:18 +0000 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2013-01-25 08:54:18 +0000 |
commit | d6541015645e806f78a48dd5fc628b15bc9ff0b8 (patch) | |
tree | 6cb4e1bef8398955118b3b100c3cbda415898983 /tools/libxl/libxl_device.c | |
parent | 68c006f4e8f4bd274ab6ce00f0c415c578205a8b (diff) | |
download | xen-d6541015645e806f78a48dd5fc628b15bc9ff0b8.tar.gz xen-d6541015645e806f78a48dd5fc628b15bc9ff0b8.tar.bz2 xen-d6541015645e806f78a48dd5fc628b15bc9ff0b8.zip |
libxl: libxl__prepare_ao_device should reset num_exec
num_exec was not cleared when calling libxl__prepare_ao_device.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_device.c')
-rw-r--r-- | tools/libxl/libxl_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 51dd06e483..58d3f35dfa 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -409,6 +409,7 @@ void libxl__prepare_ao_device(libxl__ao *ao, libxl__ao_device *aodev) aodev->ao = ao; aodev->rc = 0; aodev->dev = NULL; + aodev->num_exec = 0; /* Initialize timer for QEMU Bodge and hotplug execution */ libxl__ev_time_init(&aodev->timeout); aodev->active = 1; |