diff options
author | Zhou, Wenjia <zhiyuan_zhu@htc.com> | 2017-07-04 10:47:00 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-07-11 08:46:58 +0300 |
commit | 0de98709896d9c02ce3121ec3afb524253a5853f (patch) | |
tree | 74f0b71e56d1d016b6fffd9fec71d2932246daaa /drivers/mfd/stmpe.h | |
parent | 7581d5ca2bb269cfc2ce2d0cb489aac513167f6b (diff) | |
download | linux-0de98709896d9c02ce3121ec3afb524253a5853f.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/stmpe.h')
0 files changed, 0 insertions, 0 deletions