Skip to content
Commit 29a77bbb authored by Joe Lawrence's avatar Joe Lawrence Committed by Michael Ellerman
Browse files

powerpc/livepatch: small cleanups in save_stack_trace_tsk_reliable()



Mostly cosmetic changes:

- Group common stack pointer code at the top
- Simplify the first frame logic
- Code stackframe iteration into for...loop construct
- Check for trace->nr_entries overflow before adding any into the array

Suggested-by: default avatarNicolai Stange <nstange@suse.de>
Signed-off-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 18be3760
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment