OSDN Git Service

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)
commit69305732796f50c9e74cd850faef668f38a483b3
tree03d51484120188d0872774885e5f7f2aaf4298a0
parentff690b2111ba591abf1ea157c543a4e9f91b309e
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