]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/phys: unconditionally call release_memory_region
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Thu, 5 Mar 2020 20:42:58 +0000 (20:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Mar 2020 10:05:17 +0000 (10:05 +0000)
commita348fa90d5a3aa3eedefc9f80a240b0ad73ae680
treec7d2d6044d64bfeb15104a20b49bb9a112a9c0cd
parent7de180bd7cc78cbf6b868d7c6e625bf5c541e907
drm/i915/phys: unconditionally call release_memory_region

The release method will undo what we did at creation, and so we
shouldn't care if we have pages or not. Fixes a small leak in the
mock_phys selftest.

Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
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/20200305204258.216302-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_phys.c