Fix parenthesis typo -- copy full frame pointer for userland callchain,
not just one byte. Submitted by: Ryan Stone rysto32 at gmail dot com
This commit is contained in:
parent
6eaf04022b
commit
1a12d24be0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200001
@ -101,7 +101,7 @@ pmc_save_user_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
|
||||
if (copyin((void *) sp, &pc, sizeof(pc)) != 0)
|
||||
return (n);
|
||||
} else if (copyin((void *) r, &pc, sizeof(pc)) != 0 ||
|
||||
copyin((void *) fp, &fp, sizeof(fp) != 0))
|
||||
copyin((void *) fp, &fp, sizeof(fp)) != 0)
|
||||
return (n);
|
||||
|
||||
for (; n < nframes;) {
|
||||
|
Loading…
Reference in New Issue
Block a user