aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/dwarf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c
index d1d8536e5ba..49d039f1942 100644
--- a/arch/sh/kernel/dwarf.c
+++ b/arch/sh/kernel/dwarf.c
@@ -89,7 +89,8 @@ static void dwarf_frame_alloc_regs(struct dwarf_frame *frame,
*/
static inline int dwarf_read_addr(unsigned long *src, unsigned long *dst)
{
- *dst = get_unaligned(src);
+ u32 val = get_unaligned(src);
+ put_unaligned(val, dst);
return sizeof(unsigned long *);
}