mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
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:
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user