Files
linux/drivers/char
Qiushi Wu a46fe2e78d agp/intel: Fix a memory leak on module initialisation failure
[ Upstream commit b975abbd38 ]

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: 0e87d2b06c ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 08:46:11 +09:00
..
2017-06-07 12:07:48 +02:00
2013-05-05 00:11:29 -04:00
2016-07-14 16:21:53 +09:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2023-05-15 14:34:59 +09:00
2013-02-22 23:31:31 -05:00
2023-05-15 16:16:41 +09:00
2016-01-22 18:04:28 -05:00
2011-01-10 08:51:44 -08:00
2013-10-16 12:36:10 -07:00