From: Alexey Dobriyan Date: Mon, 15 May 2006 16:44:27 +0000 (-0700) Subject: [PATCH] fs/compat.c: fix 'if (a |= b )' typo X-Git-Tag: v2.6.16.17~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c83627504b74edcb164964e71125783a212e81;p=thirdparty%2Fkernel%2Fstable.git [PATCH] fs/compat.c: fix 'if (a |= b )' typo Mentioned by Mark Armbrust somewhere on Usenet. Signed-off-by: Alexey Dobriyan Signed-off-by: David Woodhouse Cc: Ulrich Drepper Signed-off-by: Andrew Morton Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/compat.c b/fs/compat.c index 04f6fb53340cf..8491bb8330f6c 100644 --- a/fs/compat.c +++ b/fs/compat.c @@ -1901,7 +1901,7 @@ asmlinkage long compat_sys_ppoll(struct pollfd __user *ufds, } if (sigmask) { - if (sigsetsize |= sizeof(compat_sigset_t)) + if (sigsetsize != sizeof(compat_sigset_t)) return -EINVAL; if (copy_from_user(&ss32, sigmask, sizeof(ss32))) return -EFAULT;