diff --git a/examples/bdev/fio_plugin/fio_plugin.c b/examples/bdev/fio_plugin/fio_plugin.c index 2a237d8aa..565cf7e00 100644 --- a/examples/bdev/fio_plugin/fio_plugin.c +++ b/examples/bdev/fio_plugin/fio_plugin.c @@ -538,6 +538,8 @@ spdk_fio_io_u_init(struct thread_data *td, struct io_u *io_u) { struct spdk_fio_request *fio_req; + io_u->engine_data = NULL; + fio_req = calloc(1, sizeof(*fio_req)); if (fio_req == NULL) { return 1; diff --git a/examples/nvme/fio_plugin/fio_plugin.c b/examples/nvme/fio_plugin/fio_plugin.c index 3958c4ba4..14cba2a7f 100644 --- a/examples/nvme/fio_plugin/fio_plugin.c +++ b/examples/nvme/fio_plugin/fio_plugin.c @@ -537,6 +537,8 @@ static int spdk_fio_io_u_init(struct thread_data *td, struct io_u *io_u) struct spdk_fio_thread *fio_thread = td->io_ops_data; struct spdk_fio_request *fio_req; + io_u->engine_data = NULL; + fio_req = calloc(1, sizeof(*fio_req)); if (fio_req == NULL) { return 1;