From fc2ece26adc2f5b5e9eff91236b83a2237d1149d Mon Sep 17 00:00:00 2001 From: Peter Chubb Date: Thu, 9 Oct 2003 03:19:19 -0700 Subject: [PATCH] [PATCH] ia64: drop stale check for GAS_HAS_LOCAL_TAGS GAS_HAS_LOCAL_TAGS was removed a long time ago, but uaccess.h never got updated. Without this fix, bad syscall args may cause a SEGFAULT instead of failing gracefully. --- include/asm-ia64/uaccess.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/asm-ia64/uaccess.h b/include/asm-ia64/uaccess.h index 9aa49df402473..5154d4904d691 100644 --- a/include/asm-ia64/uaccess.h +++ b/include/asm-ia64/uaccess.h @@ -408,11 +408,7 @@ struct exception_table_entry { extern void handle_exception (struct pt_regs *regs, const struct exception_table_entry *e); extern const struct exception_table_entry *search_exception_tables (unsigned long addr); -#ifdef GAS_HAS_LOCAL_TAGS # define SEARCH_EXCEPTION_TABLE(regs) search_exception_tables(regs->cr_iip + ia64_psr(regs)->ri) -#else -# define SEARCH_EXCEPTION_TABLE(regs) search_exception_tables(regs->cr_iip) -#endif static inline int done_with_exception (struct pt_regs *regs) -- 2.53.0