aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-20 20:56:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-20 20:56:23 -0500
commitf59dc2bb5a50b26ea751f9eac1c81e4cc7de5257 (patch)
tree4c1b3e0ea4bfbd8f9dd72ee95773f4be2dd087d2 /arch/arm/kernel
parentf3dc1294c8a40d7eedd676b65f42f0b828fd3d8c (diff)
parente6ee4b2b57a8e0d8e551031173de080b338d3969 (diff)
Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
Pull ARM fixes from Russell King: "A number of smallish fixes scattered around the ARM code. Probably the most serious one is the one from Al addressing the missing locking in the swap emulation code." * 'fixes' of git://git.linaro.org/people/rmk/linux-arm: ARM: 7607/1: realview: fix private peripheral memory base for EB rev. B boards ARM: 7606/1: cache: flush to LoUU instead of LoUIS on uniprocessor CPUs ARM: missing ->mmap_sem around find_vma() in swp_emulate.c ARM: 7605/1: vmlinux.lds: Move .notes section next to the rodata ARM: 7602/1: Pass real "__machine_arch_type" variable to setup_machine_tags() procedure ARM: 7600/1: include CONFIG_DEBUG_LL_INCLUDE rather than mach/debug-macro.S
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/setup.c2
-rw-r--r--arch/arm/kernel/swp_emulate.c2
-rw-r--r--arch/arm/kernel/vmlinux.lds.S4
3 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 9a89bf4aefe1..3f6cbb2e3eda 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -733,7 +733,7 @@ void __init setup_arch(char **cmdline_p)
733 setup_processor(); 733 setup_processor();
734 mdesc = setup_machine_fdt(__atags_pointer); 734 mdesc = setup_machine_fdt(__atags_pointer);
735 if (!mdesc) 735 if (!mdesc)
736 mdesc = setup_machine_tags(__atags_pointer, machine_arch_type); 736 mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type);
737 machine_desc = mdesc; 737 machine_desc = mdesc;
738 machine_name = mdesc->name; 738 machine_name = mdesc->name;
739 739
diff --git a/arch/arm/kernel/swp_emulate.c b/arch/arm/kernel/swp_emulate.c
index df745188f5de..ab1017bd1667 100644
--- a/arch/arm/kernel/swp_emulate.c
+++ b/arch/arm/kernel/swp_emulate.c
@@ -109,10 +109,12 @@ static void set_segfault(struct pt_regs *regs, unsigned long addr)
109{ 109{
110 siginfo_t info; 110 siginfo_t info;
111 111
112 down_read(&current->mm->mmap_sem);
112 if (find_vma(current->mm, addr) == NULL) 113 if (find_vma(current->mm, addr) == NULL)
113 info.si_code = SEGV_MAPERR; 114 info.si_code = SEGV_MAPERR;
114 else 115 else
115 info.si_code = SEGV_ACCERR; 116 info.si_code = SEGV_ACCERR;
117 up_read(&current->mm->mmap_sem);
116 118
117 info.si_signo = SIGSEGV; 119 info.si_signo = SIGSEGV;
118 info.si_errno = 0; 120 info.si_errno = 0;
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index b9f38e388b43..11c1785bf63e 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -140,6 +140,8 @@ SECTIONS
140 } 140 }
141#endif 141#endif
142 142
143 NOTES
144
143 _etext = .; /* End of text and rodata section */ 145 _etext = .; /* End of text and rodata section */
144 146
145#ifndef CONFIG_XIP_KERNEL 147#ifndef CONFIG_XIP_KERNEL
@@ -295,8 +297,6 @@ SECTIONS
295 } 297 }
296#endif 298#endif
297 299
298 NOTES
299
300 BSS_SECTION(0, 0, 0) 300 BSS_SECTION(0, 0, 0)
301 _end = .; 301 _end = .;
302 302