2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 15:43:59 +08:00

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 <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt 2009-08-14 03:06:13 +09:00
parent 3497447f15
commit bf43a160ff

View File

@ -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) 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 *); return sizeof(unsigned long *);
} }