Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Sep 25, 2015

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 01cbd4d913d4eed56dc51256cddfe327b9c28d4c:

Update fio2gnuplot (2015-09-17 19:42:34 +0200)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 194fffd042d374d5e13af61a14fe16734c396d8c:

Fix integer overflow in rate_iops (2015-09-24 20:35:44 -0600)

----------------------------------------------------------------
Jens Axboe (1):
Fix integer overflow in rate_iops

 init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

Diff of recent changes:

init.c +1 -1
index cdb98c5..684cd60 100644
@@ -465,7 +465,7 @@ static int __setup_rate(struct thread_data *td, enum fio_ddir ddir)
 	if (td->o.rate[ddir])
 		td->rate_bps[ddir] = td->o.rate[ddir];
 	else
-		td->rate_bps[ddir] = td->o.rate_iops[ddir] * bs;
+		td->rate_bps[ddir] = (uint64_t) td->o.rate_iops[ddir] * bs;
 
 	if (!td->rate_bps[ddir]) {
 		log_err("rate lower than supported\n");