]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Use sgt_iter for huge_pages_free
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Nov 2019 23:29:46 +0000 (23:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Nov 2019 14:23:53 +0000 (14:23 +0000)
commit14954ad5cb67f7c11d6850c4c00a49de8cef4c02
tree03d51484120188d0872774885e5f7f2aaf4298a0
parente692c9b0d992b288457a4c3b10c2ae760ee9457d
drm/i915/selftests: Use sgt_iter for huge_pages_free

Use the normal sgt_iter to walk the pages scatterlist on free so that we
handle the error path correctly.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112225
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191128232946.546831-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/huge_gem_object.c