aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorZheng Wang <[email protected]>2022-12-29 16:56:41 +0000
committerZhenyu Wang <[email protected]>2023-01-04 15:21:19 +0000
commit4a61648af68f5ba4884f0e3b494ee1cabc4b6620 (patch)
treea99dac423d942fb2bee8d1c5418bbf75577658c3 /tools/perf/scripts/python/event_analyzing_sample.py
parentdrm/i915/gvt: use atomic operations to change the vGPU status (diff)
downloadkernel-4a61648af68f5ba4884f0e3b494ee1cabc4b6620.tar.gz
kernel-4a61648af68f5ba4884f0e3b494ee1cabc4b6620.zip
drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
If intel_gvt_dma_map_guest_page failed, it will call ppgtt_invalidate_spt, which will finally free the spt. But the caller function ppgtt_populate_spt_by_guest_entry does not notice that, it will free spt again in its error path. Fix this by canceling the mapping of DMA address and freeing sub_spt. Besides, leave the handle of spt destroy to caller function instead of callee function when error occurs. Fixes: b901b252b6cf ("drm/i915/gvt: Add 2M huge gtt support") Signed-off-by: Zheng Wang <[email protected]> Reviewed-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions