Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/i915/gvt: fix dropping obj reference twice
The reference count of obj will be decremented twice if error occurs in dma_buf_fd(). Additionally, attempting to read the reference count of obj after dropping reference may lead to a use after free bug. Here, we drop obj's reference until it is not used. Fixes: e546e28 ("drm/i915/gvt: Dmabuf support for GVT-g") Signed-off-by: Pan Bian <[email protected]> Reviewed-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
- Loading branch information