[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 15/32] signal: Don't use uninitalised sival_ptr
In 64bit builds, setting sival_int to 0 doesn't clear the upper half of the sival_ptr pointer. Valgrind does not like this. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- vl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 67d9d86..c864e7d 100644 --- a/vl.c +++ b/vl.c @@ -1568,7 +1568,7 @@ static void rtc_stop_timer(struct qemu_alarm_timer *t) static int dynticks_start_timer(struct qemu_alarm_timer *t) { - struct sigevent ev; + struct sigevent ev = { { 0 } }; timer_t host_timer; struct sigaction act; @@ -1578,7 +1578,6 @@ static int dynticks_start_timer(struct qemu_alarm_timer *t) sigaction(SIGALRM, &act, NULL); - ev.sigev_value.sival_int = 0; ev.sigev_notify = SIGEV_SIGNAL; ev.sigev_signo = SIGALRM; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |