]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug in hwpmc(4) callchain retrieval, for both user and kernel.
authorJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 3 Jul 2014 06:52:26 +0000 (06:52 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 3 Jul 2014 06:52:26 +0000 (06:52 +0000)
commite42edd4db6f70718a064f007ea366c9a5be0c1b9
tree21109791fc3b6a9503a507b9644ad1f567e119ed
parent7ddad071a5f74ba46f939f62c682fc02634b2048
Fix a bug in hwpmc(4) callchain retrieval, for both user and kernel.

The array index for the callchain is getting double-incremented -- both in the
loop and the storing.  It should only be incremented in one location.

Also, constrain the stack pointer range check.

MFC after: 2 weeks
sys/dev/hwpmc/hwpmc_powerpc.c