Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321310
b: refs/heads/master
c: 9e2760d
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Schwab authored and Geert Uytterhoeven committed Aug 2, 2012
1 parent 276acc2 commit ca5e574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1525e06e4414dbe053ea10cbd8cc03bb150e8e27
refs/heads/master: 9e2760d18b3cf179534bbc27692c84879c61b97c
8 changes: 6 additions & 2 deletions trunk/arch/m68k/kernel/sys_m68k.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,13 @@ sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3, int d4, int d5,
goto bad_access;
}

mem_value = *mem;
/*
* No need to check for EFAULT; we know that the page is
* present and writable.
*/
__get_user(mem_value, mem);
if (mem_value == oldval)
*mem = newval;
__put_user(newval, mem);

pte_unmap_unlock(pte, ptl);
up_read(&mm->mmap_sem);
Expand Down

0 comments on commit ca5e574

Please sign in to comment.