Next: Intel_i915_gpu, Up: (dir) [Contents]
This manual is for program, version version.
| • Intel_i915_gpu: |
Fix a memory leak in intel_gvt_init_gtt
Intel develop tree: https://github.com/01org/gvt-linux.git
commit 4c47ec60defb22fe5db110b8390c74353c85b4e6
Author: Zhou, Wenjia <zhiyuan_zhu@htc.com>
Date: Tue Jul 4 15:47:00 2017 +0800
drm/i915/gvt: Fix a memory leak in intel_gvt_init_gtt()
It will causes memory leak, if the function setup_spt_oos() fail,
in the function intel_gvt_init_gtt(),
which allocated by get_zeroed_page() and mapped by dma_map_page().
Unmap and free the page, after STP oos initialize fail,
it will fix this issue.
Signed-off-by: Zhou, Wenjia <zhiyuan_zhu@htc.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>