Module Name: src
Committed By: maxv
Date: Mon Aug 15 09:20:11 UTC 2016
Modified Files:
src/sys/compat/linux/common: linux_futex.c
Log Message:
Uninitialized var, found by brainy; not tested, but obvious enough
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/compat/linux/common/linux_futex.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_futex.c
diff -u src/sys/compat/linux/common/linux_futex.c:1.34 src/sys/compat/linux/common/linux_futex.c:1.35
--- src/sys/compat/linux/common/linux_futex.c:1.34 Fri May 20 13:54:34 2016
+++ src/sys/compat/linux/common/linux_futex.c Mon Aug 15 09:20:11 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_futex.c,v 1.34 2016/05/20 13:54:34 chs Exp $ */
+/* $NetBSD: linux_futex.c,v 1.35 2016/08/15 09:20:11 maxv Exp $ */
/*-
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.34 2016/05/20 13:54:34 chs Exp $");
+__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.35 2016/08/15 09:20:11 maxv Exp $");
#include <sys/param.h>
#include <sys/time.h>
@@ -769,6 +769,7 @@ release_futexes(struct lwp *l)
return;
head.futex_offset = (unsigned long)u32;
+ futex_offset = head.futex_offset;
} else
#endif
if (copyin(&head.futex_offset, &futex_offset, sizeof(unsigned long)))