diff options
author | Felipe Franciosi <felipe@nutanix.com> | 2020-08-12 14:40:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 14:40:31 +0100 |
commit | b9a2e75360e14e59db651d6081894e0cf20e7c2d (patch) | |
tree | 4a9e2ffb299a99b1ebfef09f0939d7b8570cf435 /lib/dma.c | |
parent | 5cdbe0fcfdd8e83c07ca0f0975916db65837ad7d (diff) | |
parent | 373d297ed7369d1b89b41fa0d34281fa87ddfde5 (diff) | |
download | libvfio-user-b9a2e75360e14e59db651d6081894e0cf20e7c2d.zip libvfio-user-b9a2e75360e14e59db651d6081894e0cf20e7c2d.tar.gz libvfio-user-b9a2e75360e14e59db651d6081894e0cf20e7c2d.tar.bz2 |
Merge pull request #22 from franciozzy/cleanup_3
Cleanup 3
Diffstat (limited to 'lib/dma.c')
-rw-r--r-- | lib/dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -137,6 +137,10 @@ dma_controller_remove_regions(lm_ctx_t *ctx, dma_controller_t *dma) void dma_controller_destroy(lm_ctx_t *lm_ctx, dma_controller_t *dma) { + if (dma == NULL) { + return; + } + dma_controller_remove_regions(lm_ctx, dma); free(dma); } |