projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3497447
)
sh: unwinder: Restore put_unaligned() for an unaligned destination.
author
Paul Mundt
<lethal@linux-sh.org>
Thu, 13 Aug 2009 18:06:13 +0000
(
03:06
+0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 13 Aug 2009 18:06:13 +0000
(
03:06
+0900)
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>
arch/sh/kernel/dwarf.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/dwarf.c
b/arch/sh/kernel/dwarf.c
index d1d8536e5ba3377b5126c1ad0aa71ace6e2f8a6b..49d039f19426ae58005e68620683b7bbe10efa77 100644
(file)
--- 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 *);
}