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.17-rc5~128 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=3835a9bd07778d87dea37fbf190f70883515e8fc;p=powerpc.git [PATCH] fs/compat.c: fix 'if (a |= b )' typo Mentioned by Mark Armbrust somewhere on Usenet. Signed-off-by: Alexey Dobriyan Cc: David Woodhouse Cc: Ulrich Drepper Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/compat.c b/fs/compat.c index 970888aad8..01f39f87f3 100644 --- a/fs/compat.c +++ b/fs/compat.c @@ -1913,7 +1913,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;