Re: [PATCH 4/7] vhost-user-gpu: fix memory link while calling 'vg_resource_unref'

2021-05-05 Thread P J P
+-- On Tue, 4 May 2021, Li Qiang wrote --+ | If the guest trigger following sequences, the attach_backing will be leaked: | | vg_resource_create_2d | vg_resource_attach_backing | vg_resource_unref | | This patch fix this by freeing 'res->iov' in vg_resource_destroy. | | Signed-

[PATCH 4/7] vhost-user-gpu: fix memory link while calling 'vg_resource_unref'

2021-05-04 Thread Li Qiang
If the guest trigger following sequences, the attach_backing will be leaked: vg_resource_create_2d vg_resource_attach_backing vg_resource_unref This patch fix this by freeing 'res->iov' in vg_resource_destroy. Signed-off-by: Li Qiang --- contrib/vhost-user-gpu/vhost-use