Patch "um/sysrq: remove needless variable sp" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    um/sysrq: remove needless variable sp

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     um-sysrq-remove-needless-variable-sp.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 60cf79adf0184422aff312eb17f697900d10adf2
Author: Dmitry Safonov <0x7f454c46@xxxxxxxxx>
Date:   Mon Jun 8 21:31:42 2020 -0700

    um/sysrq: remove needless variable sp
    
    [ Upstream commit 3dd923f39a03dede001afe0edcc08613d5f403e5 ]
    
    `sp' is a needless excercise here.
    
    Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Cc: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>
    Cc: Jeff Dike <jdike@xxxxxxxxxxx>
    Cc: Richard Weinberger <richard@xxxxxx>
    Link: http://lkml.kernel.org/r/20200418201944.482088-36-dima@xxxxxxxxxx
    Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 0f659ff362ea ("um: Always dump trace for specified task in show_stack")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index c71b5ef7ea8c3..c831a1c2eb94a 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -27,7 +27,6 @@ static const struct stacktrace_ops stackops = {
 
 void show_stack(struct task_struct *task, unsigned long *stack)
 {
-	unsigned long *sp = stack;
 	struct pt_regs *segv_regs = current->thread.segv_regs;
 	int i;
 
@@ -38,10 +37,9 @@ void show_stack(struct task_struct *task, unsigned long *stack)
 	}
 
 	if (!stack)
-		sp = get_stack_pointer(task, segv_regs);
+		stack = get_stack_pointer(task, segv_regs);
 
 	pr_info("Stack:\n");
-	stack = sp;
 	for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
 		if (kstack_end(stack))
 			break;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux