diff options
author | 2019-11-06 15:31:07 +0800 | |
---|---|---|
committer | 2019-11-08 11:04:07 +0800 | |
commit | 41d931459b53e32c67a1f8838d1e6826a69ee745 (patch) | |
tree | a80848e715fb2521ce30d97e7036762d2eb65976 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915/dp: Do not switch aux to TBT mode for non-TC ports (diff) | |
download | wireguard-linux-41d931459b53e32c67a1f8838d1e6826a69ee745.tar.xz wireguard-linux-41d931459b53e32c67a1f8838d1e6826a69ee745.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions