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
Found by gcc 4.6's new warnings.
Signed-off-by: Andi Kleen <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.