drm/i915: Check that the relocation points to within the target
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Sep 2009 22:23:18 +0000 (23:23 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 18 Sep 2009 22:31:21 +0000 (15:31 -0700)
commitcd0b9fb400ba775737bdc3874c4cbee4047e66d8
treef5816a8740c8bf4b01381f9fb67b58a1ebf0c82e
parentedb81956422c9926553bb97e3e56b849da0f4bb5
drm/i915: Check that the relocation points to within the target

Eric noted a potential concern with the low bits not being strictly used
as part of the absolute offset (instead part of the command stream to the
GPU), but in practice that should not be an issue.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Andy Whitcroft <apw@canonical.com>
Cc: Eric Anholt <eric@anholt.net>
CC: stable@kernel.org
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_gem.c