diff options
author | robertswiecki <robert@swiecki.net> | 2019-04-01 17:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 17:42:20 +0200 |
commit | 38ec494285e019f9675ff5989e0025222a3b199c (patch) | |
tree | ab04959c10f6050fcbbccf43163ab8a414c92aec /linux/perf.c | |
parent | aa5c90b8d38754b6c2835cb92f1a9e4fa9d6a998 (diff) | |
parent | 718d58b7c97902c494d9abb9b36c4600e8731fdb (diff) | |
download | honggfuzz-38ec494285e019f9675ff5989e0025222a3b199c.tar.gz |
Merge pull request #248 from solomonbstoner/fix_minor_error
linux/perf.c: Fix `cpuIptBtsFd` assignment on failed perf set-up
Diffstat (limited to 'linux/perf.c')
-rw-r--r-- | linux/perf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/perf.c b/linux/perf.c index 46103430..b7355e04 100644 --- a/linux/perf.c +++ b/linux/perf.c @@ -251,7 +251,7 @@ out: close(run->linux.cpuBranchFd); run->linux.cpuBranchFd = -1; close(run->linux.cpuIptBtsFd); - run->linux.cpuIptBtsFd = 1; + run->linux.cpuIptBtsFd = -1; return false; } |