projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stats: fix io_u_plat out-of-bound accesses (round 2)
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 25dd1791767437ad75de4b405b63d37debb487b6..ae3c71af694cbd1771e556bb674c1065536146ad 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-775,7
+775,9
@@
void show_run_stats(void)
for (k = 0; k <= 2; k++) {
ts->total_io_u[k] += td->ts.total_io_u[k];
ts->short_io_u[k] += td->ts.short_io_u[k];
+ }
+ for (k = 0; k <= DDIR_WRITE; k++) {
int m;
for (m = 0; m < FIO_IO_U_PLAT_NR; m++)
ts->io_u_plat[k][m] += td->ts.io_u_plat[k][m];