Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf43a160 authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3497447f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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 *);
}
}