From: Rabin Vincent Date: Wed, 9 Feb 2011 10:35:12 +0000 (+0100) Subject: ARM: 6654/1: perf/oprofile: fix off-by-one in stack check X-Git-Tag: v2.6.38-rc5~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb06199b1df492fcfbaedd2256b5054f944b664f;p=pandora-kernel.git ARM: 6654/1: perf/oprofile: fix off-by-one in stack check Since tail is the previous fp - 1, we need to compare the new fp with tail + 1 to ensure that we don't end up passing in the same tail again, in order to avoid a potential infinite loop in the perf interrupt handler (which has been observed to occur). A similar fix seems to be needed in the OProfile code. Acked-by: Will Deacon Signed-off-by: Rabin Vincent Signed-off-by: Russell King --- Reading git-diff-tree failed