From: Roel Kluin Date: Sun, 22 Feb 2009 01:33:28 +0000 (+0100) Subject: [IA64] Do not go beyond ARRAY_SIZE of unw.hash X-Git-Tag: upstream/snapshot3+hdmi~20125^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa2f63c95439a11dfac35c60d9160dcd0189aed3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [IA64] Do not go beyond ARRAY_SIZE of unw.hash static struct { ... :114 unsigned short hash[UNW_HASH_SIZE]; ... :2152 for (index = 0; index <= UNW_HASH_SIZE; ++index) { This is a bug, isn't it? s/<=/ Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/unwind.c b/arch/ia64/kernel/unwind.c index 67810b7..b6c0e63 100644 --- a/arch/ia64/kernel/unwind.c +++ b/arch/ia64/kernel/unwind.c @@ -2149,7 +2149,7 @@ unw_remove_unwind_table (void *handle) /* next, remove hash table entries for this table */ - for (index = 0; index <= UNW_HASH_SIZE; ++index) { + for (index = 0; index < UNW_HASH_SIZE; ++index) { tmp = unw.cache + unw.hash[index]; if (unw.hash[index] >= UNW_CACHE_SIZE || tmp->ip < table->start || tmp->ip >= table->end)