From: Paul Mundt Date: Thu, 13 Aug 2009 18:06:13 +0000 (+0900) Subject: sh: unwinder: Restore put_unaligned() for an unaligned destination. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bf43a160ff2d67a21b076286bab6f5e2c993bd0a;p=linux-beck.git sh: unwinder: Restore put_unaligned() for an unaligned destination. The destination address might be unaligned, so set it with put_unaligned() for safety. This restores the previous behaviour, albeit through the proper API. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index d1d8536e5ba3..49d039f19426 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 *); }