Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fd69098 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle
Browse files

[MIPS] unwind_stack(): return ra if an exception occured at the first instruction

parent f83b854a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -465,8 +465,11 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,

	if (!kallsyms_lookup(pc, &size, &ofs, &modname, namebuf))
		return 0;
	if (ofs == 0)
		return 0;
	/*
	 * Return ra if an exception occured at the first instruction
	 */
	if (unlikely(ofs == 0))
		return ra;

	info.func = (void *)(pc - ofs);
	info.func_size = ofs;	/* analyze from start to ofs */