panic.c: fix whitespace additions
trivial: remove white space addition in stack protector Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
54371a43a6
commit
b719ac56c0
@@ -341,14 +341,14 @@ static noinline void __stack_chk_test_func(void)
|
|||||||
* Besides, if we would, the test is already failed anyway so
|
* Besides, if we would, the test is already failed anyway so
|
||||||
* time to pull the emergency brake on it.
|
* time to pull the emergency brake on it.
|
||||||
*/
|
*/
|
||||||
if ((unsigned long)__builtin_return_address(0) ==
|
if ((unsigned long)__builtin_return_address(0) ==
|
||||||
*(((unsigned long *)&foo)+1)) {
|
*(((unsigned long *)&foo)+1)) {
|
||||||
printk(KERN_ERR "No -fstack-protector-stack-frame!\n");
|
printk(KERN_ERR "No -fstack-protector-stack-frame!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_FRAME_POINTER
|
#ifdef CONFIG_FRAME_POINTER
|
||||||
/* We also don't want to clobber the frame pointer */
|
/* We also don't want to clobber the frame pointer */
|
||||||
if ((unsigned long)__builtin_return_address(0) ==
|
if ((unsigned long)__builtin_return_address(0) ==
|
||||||
*(((unsigned long *)&foo)+2)) {
|
*(((unsigned long *)&foo)+2)) {
|
||||||
printk(KERN_ERR "No -fstack-protector-stack-frame!\n");
|
printk(KERN_ERR "No -fstack-protector-stack-frame!\n");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user