Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14721
b: refs/heads/master
c: 91f4ab0
h: refs/heads/master
i:
  14719: 029f646
v: v3
  • Loading branch information
Hirokazu Takata authored and Linus Torvalds committed Nov 28, 2005
1 parent ab32a4e commit 18afe62
Show file tree
Hide file tree
Showing 2 changed files with 5 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: bce61dd49d6ba7799be2de17c772e4c701558f14
refs/heads/master: 91f4ab056d85d23fa6955927fdeb1558673e8cd1
6 changes: 4 additions & 2 deletions trunk/arch/m32r/kernel/sys_m32r.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ asmlinkage int sys_tas(int *addr)
return -EFAULT;
local_irq_save(flags);
oldval = *addr;
*addr = 1;
if (!oldval)
*addr = 1;
local_irq_restore(flags);
return oldval;
}
Expand All @@ -59,7 +60,8 @@ asmlinkage int sys_tas(int *addr)

_raw_spin_lock(&tas_lock);
oldval = *addr;
*addr = 1;
if (!oldval)
*addr = 1;
_raw_spin_unlock(&tas_lock);

return oldval;
Expand Down

0 comments on commit 18afe62

Please sign in to comment.