summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2009-12-01 21:54:53 +0000
committeremaste <emaste@FreeBSD.org>2009-12-01 21:54:53 +0000
commit79ed8992e0532cc0cfe5940487b827979aac669e (patch)
tree16088b6dceddaee4c08b9a369d881a0ebd107b39 /sys/dev/hwpmc
parent72b5ea2c05e0379e9c44721a12a9e1ede765941c (diff)
downloadFreeBSD-src-79ed8992e0532cc0cfe5940487b827979aac669e.zip
FreeBSD-src-79ed8992e0532cc0cfe5940487b827979aac669e.tar.gz
Fix parenthesis typo -- copy full frame pointer for userland callchain,
not just one byte. Submitted by: Ryan Stone rysto32 at gmail dot com
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c
index 09d04bb..6df47d3 100644
--- a/sys/dev/hwpmc/hwpmc_x86.c
+++ b/sys/dev/hwpmc/hwpmc_x86.c
@@ -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;) {
OpenPOWER on IntegriCloud