diff options
author | Pekka Enberg <penberg@kernel.org> | 2012-01-14 14:10:36 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-01-14 14:10:36 +0200 |
commit | 1bdb2d6f8be29a1e04fb4f0dabc5f50c6a9c6a25 (patch) | |
tree | a63102df611657367304a2b28bd4d4963d7f0775 | |
parent | 4267c0dcd2d5320238335a91964c802569fcfd6c (diff) | |
download | jato-1bdb2d6f8be29a1e04fb4f0dabc5f50c6a9c6a25.tar.gz |
x86: Fix cu_frame_locals_offset() frame size calculation
Commit 02b74cf ("x86-32: Fix stack frame size in generated prolog") forgot to
fix cu_frame_locals_offset().
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r-- | arch/x86/stack-frame.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/stack-frame.c b/arch/x86/stack-frame.c index f4cc375f..c7db807e 100644 --- a/arch/x86/stack-frame.c +++ b/arch/x86/stack-frame.c @@ -122,8 +122,7 @@ unsigned long frame_locals_size(struct stack_frame *frame) */ unsigned long cu_frame_locals_offset(struct compilation_unit *cu) { - unsigned long frame_size = frame_locals_size(cu->stack_frame); - return frame_size * sizeof(unsigned long); + return frame_locals_size(cu->stack_frame); } /* |