Skip to content

Commit 22b5194

Browse files
committed
fbtl/posix: fix for CID 1645304
initialize AIO elements to zero by using calloc Signed-off-by: Edgar Gabriel <Edgar.Gabriel@amd.com>
1 parent 9d432a7 commit 22b5194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/fbtl/posix/fbtl_posix_ipreadv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ssize_t mca_fbtl_posix_ipreadv (ompio_file_t *fh,
5656
data->prd_req_type = FBTL_POSIX_AIO_READ;
5757
data->prd_req_chunks = ompi_fbtl_posix_max_prd_active_reqs;
5858
data->prd_total_len = 0;
59-
data->prd_aio.aio_reqs = (struct aiocb *) malloc (sizeof(struct aiocb) *
59+
data->prd_aio.aio_reqs = (struct aiocb *) calloc (sizeof(struct aiocb),
6060
fh->f_num_of_io_entries);
6161
if (NULL == data->prd_aio.aio_reqs) {
6262
opal_output(1, "mca_fbtl_posix_ipreadv: could not allocate memory\n");

0 commit comments

Comments
 (0)