[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-traditional stable-4.6] signal: Don't use uninitalised sival_ptr
commit 9b81761be03ac017bdb1a212e4b59de545853d2f Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Tue Apr 21 14:35:45 2015 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Oct 16 16:52:06 2015 +0100 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 files changed, 1 insertions(+), 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; -- generated by git-patchbot for /home/xen/git/qemu-xen-traditional.git#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |