[PATCH] drm/i915/gvt: Refine dmabuf_obj cleanup process

Zhenyu Wang zhenyuw at linux.intel.com
Fri Dec 8 08:31:15 UTC 2017


On 2017.12.08 15:17:38 +0800, Tina Zhang wrote:
> In the process of dmabuf_obj cleanup, the dmabuf_obj might be freed during
> dmabuf_obj_put leaking intel_gvt_hypervisor_put_vfio_device.
> 
> Move intel_gvt_hypervisor_put_vfio_device and all the other dmabuf_obj ops
> in front of dmabuf_obj_put and let every dmabuf_obj have a chance to call
> intel_gvt_hypervisor_put_vfio_device to fix this leaking issue.
> 
> Fixes: e3a0d7976c53 ("drm/i915/gvt: Handle orphan dmabuf_objs")
> Signed-off-by: Tina Zhang <tina.zhang at intel.com>
> ---

applied, thanks!

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171208/2cd560f5/attachment-0001.sig>


More information about the intel-gvt-dev mailing list