From: Steven Rostedt (Red Hat) Date: Wed, 2 Apr 2014 17:26:40 +0000 (-0400) Subject: x86: Fix dumpstack_64 to keep state of "used" variable in loop X-Git-Tag: v3.15-rc1~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aabc5990d205cdb0789a1c26143c53601e9bb07;p=pandora-kernel.git x86: Fix dumpstack_64 to keep state of "used" variable in loop Commit 2223f6f6eeaa "x86: Clean up dumpstack_64.c code" moved the used variable to a local within the loop, but the in_exception_stack() depended on being non-volatile with the ability to change it. By always re-initializing the "used" variable to zero, it would cause the in_exception_stack() to return the same thing each time, and cause the dump_stack loop to go into an infinite loop. Reported-by: Linus Torvalds Signed-off-by: Steven Rostedt Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed