ttm: Clear the ttm page allocated from high memory zone correctly
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 13 Nov 2012 18:31:55 +0000 (18:31 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Nov 2012 23:56:35 +0000 (09:56 +1000)
commitac207ed2471150e06af0afc76e4becc701fa2733
tree348d030301979c30286c895a84f11a8e398a1761
parent888155bbf63a5f955d7a45932ff05e848f715bf0
ttm: Clear the ttm page allocated from high memory zone correctly

The TTM page can be allocated from high memory. In such case it is
wrong to use the page_address(page) as the virtual address for the high memory
page.

bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=50241

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c