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:
parent
921a1dc311
commit
500f531200
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user