diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-07-18 20:06:04 +0200 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-07-18 20:47:04 +0200 |
commit | 3da86ee4f1884c70edbf76f61bfbbe028d2d1685 (patch) | |
tree | be4216a6846b45cde1418706b357fca678a9f966 /mm/tiny-shmem.c | |
parent | [AVR32] Correct misspelled CONFIG_BLK_DEV_INITRD variable. (diff) | |
download | linux-3da86ee4f1884c70edbf76f61bfbbe028d2d1685.tar.xz linux-3da86ee4f1884c70edbf76f61bfbbe028d2d1685.zip |
[AVR32] Fix atomic_add_unless() and atomic_sub_unless()
These functions depend on "result" being initalized to 0, but "result"
is not included as an input constraint to the inline assembly block
following its initialization, only as an output constraint. Thus gcc
thinks it doesn't need to initialize it, so result ends up undefined
if the "unless" condition is true.
This fixes an oops in sunrpc where the faulty atomics caused
rpciod_up() to not start the workqueue as it should.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'mm/tiny-shmem.c')
0 files changed, 0 insertions, 0 deletions