[Linux-ia64] null pointer dereference patch

Bjorn Helgaas
2002-02-12T21:51:22Z

Without the attached patch, unaligned references before
init_modules() is called result in null pointer dereferences.
This is against 2.4.17-ia64-011226.
--
Bjorn Helgaas - bjorn_helgaas@hp.com
Linux Systems Operation R&D
Hewlett-Packard

Index: arch/ia64/mm/extable.c
=================================RCS file: /var/cvs/linux/arch/ia64/mm/extable.c,v
retrieving revision 1.2
diff -u -p -r1.2 extable.c
--- arch/ia64/mm/extable.c 25 Jan 2002 20:14:42 -0000 1.2
+++ arch/ia64/mm/extable.c 12 Feb 2002 16:42:55 -0000
@@ -59,6 +59,8 @@ search_exception_table (unsigned long ad
if (!mp->ex_table_start)
continue;
archdata = (struct archdata *) mp->archdata_start;
+ if (!archdata)
+ continue;
entry = search_one_table(mp->ex_table_start, mp->ex_table_end - 1,
addr, (unsigned long) archdata->gp);
if (entry) {