diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2006-02-20 18:28:15 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-20 20:00:12 -0800 |
commit | b04ec261bd64f927bf3fce5cf9eeb0225557939d (patch) | |
tree | 2ad7a66b6f0dc6e0e641bef088865c5c140d0ae1 /arch | |
parent | 49d9c81a699b57a5b6488f3a761669d05e116588 (diff) | |
download | kernel-crypto-b04ec261bd64f927bf3fce5cf9eeb0225557939d.tar.gz kernel-crypto-b04ec261bd64f927bf3fce5cf9eeb0225557939d.tar.xz kernel-crypto-b04ec261bd64f927bf3fce5cf9eeb0225557939d.zip |
[PATCH] m32r: __cmpxchg_u32 fix
This patch fixes a bug of include/asm-m32r/system.h:__cmpxchg_u32().
static __inline__ unsigned long
__cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new);
In __cmpxchg_u32(), the "old" value must not be changed to the previous "*p"
value. But the former code modifies the previous "*p" value.
A deadlock at _atomic_dec_and_lock sometimes happened due to this bug.
Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions