Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c4e8308c30b0139f89bac71f3c22c8d7413b8665 Commit: c4e8308c30b0139f89bac71f3c22c8d7413b8665 Parent: 38760d40ca61b18b2809e9c28df8b3ff9af8a02b Author: Ralf Baechle <[EMAIL PROTECTED]> AuthorDate: Mon Oct 29 15:00:37 2007 +0000 Committer: Ralf Baechle <[EMAIL PROTECTED]> CommitDate: Mon Oct 29 19:35:36 2007 +0000
[MIPS] IRIX: Fix off-by-one error in signal compat code. Based on original patch by Roel Kluin <[EMAIL PROTECTED]>. Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]> --- arch/mips/kernel/irixsig.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c index a0a9105..33506ff 100644 --- a/arch/mips/kernel/irixsig.c +++ b/arch/mips/kernel/irixsig.c @@ -24,8 +24,12 @@ #define _BLOCKABLE (~(_S(SIGKILL) | _S(SIGSTOP))) +#define _IRIX_NSIG 128 +#define _IRIX_NSIG_BPW BITS_PER_LONG +#define _IRIX_NSIG_WORDS (_IRIX_NSIG / _IRIX_NSIG_BPW) + typedef struct { - unsigned long sig[4]; + unsigned long sig[_IRIX_NSIG_WORDS]; } irix_sigset_t; struct sigctx_irix5 { @@ -527,7 +531,7 @@ asmlinkage int irix_sigpoll_sys(unsigned long __user *set, expire = schedule_timeout_interruptible(expire); - for (i=0; i<=4; i++) + for (i=0; i < _IRIX_NSIG_WORDS; i++) tmp |= (current->pending.signal.sig[i] & kset.sig[i]); if (tmp) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html