libxl: libxl__prepare_ao_device should reset num_exec
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 25 Jan 2013 08:54:18 +0000 (08:54 +0000)
committerRoger Pau Monne <roger.pau@citrix.com>
Fri, 25 Jan 2013 08:54:18 +0000 (08:54 +0000)
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>
tools/libxl/libxl_device.c

index 51dd06e483cc8099ae875ee7252819e389de471a..58d3f35dfa0512fb2922cf89ad82fe84ffe512ee 100644 (file)
@@ -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;