From: Chris Wilson Date: Mon, 25 Nov 2019 09:14:09 +0000 (+0000) Subject: drm/i915: Switch kunmap() to take the page not vaddr X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bae21dacd7b7167f3c2d61c11245f618a82749a1;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Switch kunmap() to take the page not vaddr On converting from kunmap_atomic() to kunamp() one must remember the latter takes the struct page, the former the vaddr. Fixes: 48715f700174 ("drm/i915: Avoid atomic context for error capture") Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala Link: https://patchwork.freedesktop.org/patch/msgid/20191125091409.1630385-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c index 7118ecb7f144..2b30a45fa25c 100644 --- a/drivers/gpu/drm/i915/i915_gpu_error.c +++ b/drivers/gpu/drm/i915/i915_gpu_error.c @@ -1045,7 +1045,7 @@ i915_error_object_create(struct drm_i915_private *i915, s = kmap(page); ret = compress_page(compress, s, dst); - kunmap(s); + kunmap(page); drm_clflush_pages(&page, 1);