diff options
author | Pan Bian <bianpan2016@163.com> | 2019-11-06 15:31:07 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-11-08 11:04:07 +0800 |
commit | 41d931459b53e32c67a1f8838d1e6826a69ee745 (patch) | |
tree | a80848e715fb2521ce30d97e7036762d2eb65976 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ee2c5ef8a9d640ee1617ec97b84fe2f634284e51 (diff) |
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: e546e281d33d ("drm/i915/gvt: Dmabuf support for GVT-g")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions