ACRN:DM: Fix the memory_leak of vga_context in virtio_gpu_deinit

Otherwise the memory related with vga_context is leaked.

v1->v2: Use the pthread_join instead of usleep to wait for
the termination of vga_thread.

Tracked-On: #7296
Acked-by: Wang Yu1 <yu1.wang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
Zhao Yakui
2022-04-18 10:28:26 +08:00
committed by acrnsi-robot
parent 2e9773ed55
commit a555658484
3 changed files with 44 additions and 0 deletions

View File

@@ -199,4 +199,5 @@ void vga_vbe_write(struct vmctx *ctx, int vcpu, struct vga *vga,
uint64_t vga_vbe_read(struct vmctx *ctx, int vcpu, struct vga *vga,
uint64_t offset, int size);
void vga_deinit(struct vga *vga);
#endif /* _VGA_H_ */