]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: vfree() no longer ignores the low bits of the address
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:42 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:23 +0000 (22:36 +0100)
commitdc87ed056b86641bd2f30fa240d3cd84761dd730
tree0912873b4fc2a2939a24e19c4cfa5486a383d4d1
parentb24f8b560d7d01327ff515eaf97fa7baa9de559f
drm/i915: vfree() no longer ignores the low bits of the address

Since vfree() now likes to WARN when passed a non-page-aligned pointer,
we need to discard the low bits to comply with it.

Fixes: 2f77a6711899 ("drm/i915: Support for creating write combined type vmaps")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c