From 91ce66a0a8a895279d8aabed3303b43bb8351808 Mon Sep 17 00:00:00 2001 From: Xianyi Zhang Date: Fri, 23 Mar 2012 15:15:05 +0800 Subject: [PATCH] Ref #82 fixed the bug in my_mbind function. --- common_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common_linux.h b/common_linux.h index 8d9019a0d..b0381d991 100644 --- a/common_linux.h +++ b/common_linux.h @@ -76,8 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode, #endif #else //Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34 - unsigned long null_nodemask=0; - return syscall(SYS_mbind, addr, len, mode, &null_nodemask, maxnode, flags); +// unsigned long null_nodemask=0; + return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags); #endif }