vhost: free destroy context structure when stopping device

Change-Id: Ifd0cf56804df016c2d9b80a266f882eb8117083e
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/389220
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Changpeng Liu 2017-11-27 20:26:14 -05:00 committed by Jim Harris
parent 921a1dc311
commit 500f531200
2 changed files with 2 additions and 0 deletions

View File

@ -545,6 +545,7 @@ destroy_device_poller_cb(void *arg)
spdk_poller_unregister(&ctx->poller);
spdk_vhost_dev_backend_event_done(ctx->event_ctx, 0);
spdk_dma_free(ctx);
}
static int

View File

@ -1091,6 +1091,7 @@ destroy_device_poller_cb(void *arg)
spdk_poller_unregister(&ctx->poller);
spdk_vhost_dev_backend_event_done(ctx->event_ctx, 0);
spdk_dma_free(ctx);
}
static int