From: Roger Pau Monne Date: Fri, 25 Jan 2013 08:54:18 +0000 (+0000) Subject: libxl: libxl__prepare_ao_device should reset num_exec X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7349 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d6541015645e806f78a48dd5fc628b15bc9ff0b8;p=xen.git 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é Acked-by: Ian Campbell Committed-by: Ian Campbell --- 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;