patch-2.1.19 linux/arch/sparc/mm/extable.c

Next file: linux/arch/sparc/mm/loadmmu.c
Previous file: linux/arch/sparc/kernel/wuf.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.18/linux/arch/sparc/mm/extable.c linux/arch/sparc/mm/extable.c
@@ -37,7 +37,7 @@
         }
         if (first > start && first[-1].insn < value
 	    && !first[-1].fixup && first->insn < value) {
-        	*g2 = (value - firstp[-1].insn)/4;
+        	*g2 = (value - first[-1].insn)/4;
         	return first->fixup;
         }
         return 0;
@@ -60,7 +60,7 @@
 		if (mp->ex_table_start == NULL)
 			continue;
 		ret = search_one_table(mp->ex_table_start,
-				       mp->ex_table_stop-1, addr, g2);
+				       mp->ex_table_end-1, addr, g2);
 		if (ret) return ret;
 	}
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov