diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-08-10 02:20:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 05:45:06 +0200 |
commit | 8c4af38e9b2c2a78369c4e2e5706fe539ac64eb2 (patch) | |
tree | 17671814cc7afb4e5eaafad32f0ed0c428764515 /mm/kmemleak.c | |
parent | s390: remove WARN_ON for misc_deregister() failures (diff) | |
download | linux-8c4af38e9b2c2a78369c4e2e5706fe539ac64eb2.tar.xz linux-8c4af38e9b2c2a78369c4e2e5706fe539ac64eb2.zip |
gcc-4.6: printk: use stable variable to dump kmsg buffer
kmsg_dump takes care to sample the global variables
inside a spinlock, but then goes on to use the same
variables outside the spinlock region too.
Use the correct variable. This will make the race
window smaller.
Found by gcc 4.6's new warnings.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions