]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:07 +0000 (09:32 -0700)
commitc10bea0fd064017b07714512bb1a1da0502c50e9
tree8e8300b2492212a0e8ab48f22f6b81461e8d061c
parent485571eb15c87439d56c4bd6ace25ee63d432726
drm/i915: Check that the relocation points to within the target

commit cd0b9fb400ba775737bdc3874c4cbee4047e66d8 upstream.

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>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c