Skip to content

Commit

Permalink
iolog: fix Error handling issues (NEGATIVE_RETURNS)
Browse files Browse the repository at this point in the history
CID 494151: Error handling issues (NEGATIVE_RETURNS) @ io_u.c:1877 in get_io_u()
This patch removes negative returns from dp_init() to ensure
its value can be properly consumed by td_verror()

Signed-off-by: Hyunwoo Park <dshw.park@samsung.com>
  • Loading branch information
parkvibes committed May 31, 2024
1 parent a70e681 commit 4150d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iolog.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static int ipo_special(struct thread_data *td, struct io_piece *ipo)
int dp_init_ret = dp_init(td);

if (dp_init_ret != 0) {
td_verror(td, dp_init_ret, "dp_init");
td_verror(td, abs(dp_init_ret), "dp_init");
return -1;
}
}
Expand Down

0 comments on commit 4150d2e

Please sign in to comment.