Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754013AbcDINAg (ORCPT ); Sat, 9 Apr 2016 09:00:36 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35145 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753731AbcDINAf (ORCPT ); Sat, 9 Apr 2016 09:00:35 -0400 From: enpengxu To: daniel.vetter@intel.com Cc: jani.nikula@linux.intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Enpeng Xu Subject: [PATCH] fix bug in function gen8_ppgtt_clear_range, passed wrong ptr to kunmap_px. Date: Sat, 9 Apr 2016 09:00:30 -0400 Message-Id: <1460206830-2536-1-git-send-email-enpengxu@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 606 Lines: 22 From: Enpeng Xu Signed-off-by: Enpeng Xu --- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 49e4f26..527eca7 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -746,7 +746,7 @@ static void gen8_ppgtt_clear_pte_range(struct i915_address_space *vm, num_entries--; } - kunmap_px(ppgtt, pt); + kunmap_px(ppgtt, pt_vaddr); pte = 0; if (++pde == I915_PDES) { -- 2.1.0