summary refs log tree commit diff stats
path: root/hw/xen_backend.c
diff options
context:
space:
mode:
authorJean-Christophe Dubois <jcd@tribudubois.net>2009-05-17 18:41:16 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-20 09:12:58 -0500
commit9ed415b28b0c808e8b0fc631902cb9ce277f0245 (patch)
treef356a9472769fc685bb34d3ec0efea1453b2b79c /hw/xen_backend.c
parente332340a7799cf5681bffac264e3ce90288c037f (diff)
downloadfocaccia-qemu-9ed415b28b0c808e8b0fc631902cb9ce277f0245.tar.gz
focaccia-qemu-9ed415b28b0c808e8b0fc631902cb9ce277f0245.zip
initialize struct sigevent before timer_create
When qemu is run under valgrind, valgrind shows the following output
on exit:

==3648== 1 errors in context 2 of 2:
==3648== Syscall param timer_create(evp) points to uninitialised byte(s)
==3648==    at 0x54E936A: timer_create (in /lib/librt-2.9.so)
==3648==    by 0x405DCF: dynticks_start_timer (vl.c:1549)
==3648==    by 0x40A966: main (vl.c:1726)
==3648==  Address 0x7fefffb34 is on thread 1's stack
==3648==  Uninitialised value was created by a stack allocation
==3648==    at 0x405D60: dynticks_start_timer (vl.c:1534)

This patch is a simple fix to remove this potential problem.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Diffstat (limited to 'hw/xen_backend.c')
0 files changed, 0 insertions, 0 deletions