summaryrefslogtreecommitdiff
path: root/linux/perf.c
diff options
context:
space:
mode:
authorrobertswiecki <robert@swiecki.net>2019-04-01 17:42:20 +0200
committerGitHub <noreply@github.com>2019-04-01 17:42:20 +0200
commit38ec494285e019f9675ff5989e0025222a3b199c (patch)
treeab04959c10f6050fcbbccf43163ab8a414c92aec /linux/perf.c
parentaa5c90b8d38754b6c2835cb92f1a9e4fa9d6a998 (diff)
parent718d58b7c97902c494d9abb9b36c4600e8731fdb (diff)
downloadhonggfuzz-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.c2
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;
}