mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
[SPARC]: Fix exec failures on sun4c.
This deals with a sun4c issue caused by commit b6a2fea393
:
mm: variable length argument support.
The new way the code works means that sun4c_update_mmu_cache gets
called before a context has been selected, which results in invalid
operation of the underling mm code.
Simply ignoring update requests when there is no valid context solves
the problem.
Signed-off-by Mark Fortescue <mark@mtfhpc.demon.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2fa3195d72
commit
da4e9fea85
1 changed files with 3 additions and 0 deletions
|
@ -1999,6 +1999,9 @@ void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, p
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int pseg;
|
int pseg;
|
||||||
|
|
||||||
|
if (vma->vm_mm->context == NO_CONTEXT)
|
||||||
|
return;
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
address &= PAGE_MASK;
|
address &= PAGE_MASK;
|
||||||
if ((pseg = sun4c_get_segmap(address)) == invalid_segment) {
|
if ((pseg = sun4c_get_segmap(address)) == invalid_segment) {
|
||||||
|
|
Loading…
Reference in a new issue