From 7273fcef491e3639fa7f71cf8c151dae091c4e25 Mon Sep 17 00:00:00 2001 From: David Mosberger Date: Thu, 25 Mar 2004 00:37:02 -0800 Subject: [PATCH] ia64: Fix typo in unwinder which could cause NULL-pointer dereferences. --- arch/ia64/kernel/unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/kernel/unwind.c b/arch/ia64/kernel/unwind.c index d3c40f25e4a5d..6a715d8410653 100644 --- a/arch/ia64/kernel/unwind.c +++ b/arch/ia64/kernel/unwind.c @@ -1746,7 +1746,7 @@ run_script (struct unw_script *script, struct unw_frame_info *state) if (!state->pri_unat_loc) state->pri_unat_loc = &state->sw->ar_unat; /* register off. is a multiple of 8, so the least 3 bits (type) are 0 */ - s[dst+1] = (*state->pri_unat_loc - s[dst]) | UNW_NAT_MEMSTK; + s[dst+1] = ((unsigned long) state->pri_unat_loc - s[dst]) | UNW_NAT_MEMSTK; break; case UNW_INSN_SETNAT_TYPE: -- 2.53.0