diff options
author | Qiushi Wu <wu000273@umn.edu> | 2020-05-22 11:34:51 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-22 14:33:40 +0300 |
commit | b975abbd382fe442713a4c233549abb90e57c22b (patch) | |
tree | f7153ed2d57d2465ee5054c61786b47629e16192 /drivers/gpu/drm/i915/intel_pm.c | |
parent | 2992b543b8f4df60a1009dfac9390a141b6fd6c4 (diff) | |
download | linux-b975abbd382fe442713a4c233549abb90e57c22b.tar.xz |
agp/intel: Fix a memory leak on module initialisation failure
In intel_gtt_setup_scratch_page(), pointer "page" is not released if
pci_dma_mapping_error() return an error, leading to a memory leak on
module initialisation failure. Simply fix this issue by freeing "page"
before return.
Fixes: 0e87d2b06cb46 ("intel-gtt: initialize our own scratch page")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200522083451.7448-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
0 files changed, 0 insertions, 0 deletions