Ref #82 fixed the bug in my_mbind function.

This commit is contained in:
Xianyi Zhang 2012-03-23 15:15:05 +08:00
parent ccdba3c771
commit 91ce66a0a8
1 changed files with 2 additions and 2 deletions

View File

@ -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
}