aboutsummaryrefslogtreecommitdiffstats
path: root/utils/aperf.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/aperf.c')
-rw-r--r--utils/aperf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/aperf.c b/utils/aperf.c
index 1c64501..6302f5a 100644
--- a/utils/aperf.c
+++ b/utils/aperf.c
@@ -100,7 +100,7 @@ static int read_msr(int cpu, unsigned int idx, unsigned long long *val)
return -1;
if (lseek(fd, idx, SEEK_CUR) == -1)
goto err;
- if (read(fd, val, sizeof val) != sizeof *val)
+ if (read(fd, val, sizeof *val) != sizeof *val)
goto err;
close(fd);
return 0;