Skip to content

Commit

Permalink
Merge pull request #234 from optimistyzy/19_1
Browse files Browse the repository at this point in the history
iscsi-perf: fix overflow issue in fill_read_queue
  • Loading branch information
sahlberg committed Jan 10, 2017
2 parents 20f52ea + 63cfcd3 commit 9f4f6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/iscsi-perf.c
Expand Up @@ -186,7 +186,7 @@ void cb(struct iscsi_context *iscsi _U_, int status, void *command_data, void *p

void fill_read_queue(struct client *client)
{
int num_blocks;
int64_t num_blocks;

if (finished) return;

Expand All @@ -210,7 +210,7 @@ void fill_read_queue(struct client *client)

task = iscsi_read16_task(client->iscsi,
client->lun, client->pos,
num_blocks * client->blocksize,
(uint32_t)(num_blocks * client->blocksize),
client->blocksize, 0, 0, 0, 0, 0,
cb, client);
if (task == NULL) {
Expand Down

0 comments on commit 9f4f6f8

Please sign in to comment.