diff options
author | Drew Richardson <drew.richardson@arm.com> | 2015-07-30 08:27:19 -0700 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-07-31 11:13:11 +0100 |
commit | 5d841367afb5252f8db7af1b4a765d0837f5921e (patch) | |
tree | e0056d8672e85759adc6b3ea014cd9e93747832d /daemon/HwmonDriver.cpp | |
parent | 83f711b8f028f2ba6fbd58d49136b33a9fc05c6d (diff) |
gator: Fix race in perf event setup
Save the result of perf_event_create_kernel_counter to a temporary
location so if it fails the error value will not be seen in __read
and mistakenly used as pointer.
Signed-off-by: Drew Richardson <Drew.Richardson@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'daemon/HwmonDriver.cpp')
0 files changed, 0 insertions, 0 deletions