summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-rlock-hardirq.h
diff options
context:
space:
mode:
authorMika Kukkonen <mikukkon@miku.homelinux.net>2007-05-11 07:22:17 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 17:29:32 +0200
commit7faaa5f0bf4db6ac4908038e2139adc46c165ff4 (patch)
treee6efe930b1749b4f133945468dad807c43fe1732 /lib/locking-selftest-rlock-hardirq.h
parentx86_64: display more intuitive error message if kernel is not 2MB aligned (diff)
downloadlinux-7faaa5f0bf4db6ac4908038e2139adc46c165ff4.tar.xz
linux-7faaa5f0bf4db6ac4908038e2139adc46c165ff4.zip
Bug in mm/thrash.c function grab_swap_token()
Following bug was uncovered by compiling with '-W' flag: CC mm/thrash.o mm/thrash.c: In function ‘grab_swap_token’: mm/thrash.c:52: warning: comparison of unsigned expression < 0 is always false Variable token_priority is unsigned, so decrementing first and then checking the result does not work; fixed by reversing the test, patch attached (compile tested only). I am not sure if likely() makes much sense in this new situation, but I'll let somebody else to make a decision on that. Signed-off-by: Mika Kukkonen <mikukkon@iki.fi> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/locking-selftest-rlock-hardirq.h')
0 files changed, 0 insertions, 0 deletions