From bfe27d15733b7b310b2c35288c2829ceda786d4f Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Sun, 28 Dec 2003 20:27:53 -0800 Subject: [PATCH] [PATCH] ia64: ia32 sigaltstack() fix The attached patch fixes a bug introduced by the earlier patch to handle the differences between ia32 and ia64 in the definition of MINSIGSTKSZ. --- arch/ia64/ia32/sys_ia32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c index 3ba190a2b6bf9..eab062c6ef8a9 100644 --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c @@ -2267,7 +2267,7 @@ sys32_sigaltstack (ia32_stack_t *uss32, ia32_stack_t *uoss32, uss.ss_flags = buf32.ss_flags; /* MINSIGSTKSZ is different for ia32 vs ia64. We lie here to pass the check and set it to the user requested value later */ - if (buf32.ss_size < MINSIGSTKSZ_IA32) { + if ((buf32.ss_flags != SS_DISABLE) && (buf32.ss_size < MINSIGSTKSZ_IA32)) { ret = -ENOMEM; goto out; } -- 2.53.0