[PATCH] fs/compat.c: fix 'if (a |= b )' typo
authorAlexey Dobriyan <[email protected]>
Mon, 15 May 2006 16:44:27 +0000 (09:44 -0700)
committerLinus Torvalds <[email protected]>
Mon, 15 May 2006 18:20:57 +0000 (11:20 -0700)
Mentioned by Mark Armbrust somewhere on Usenet.

Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Ulrich Drepper <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/compat.c

index 970888aad84383d6d708d347593e461165b4d2a1..01f39f87f372ec08bfd932dd92a3dc5e646d20d6 100644 (file)
@@ -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;