drm/ttm: Fix accesses through vmas with only partial coverage
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 9 Dec 2013 07:23:57 +0000 (23:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:10 +0000 (12:25 -0800)
commit36abf88c17b1dec10590f7accb66b3d72a6df214
tree238cc6d201d3d914108f9b7f1c5bc8eb91e1d12d
parentb556918588fc14ab6372b9579d512710d52cb32f
drm/ttm: Fix accesses through vmas with only partial coverage

commit d386735588c3e22129c2bc6eb64fc1d37a8f805c upstream.

VMAs covering a bo but that didn't start at the same address space offset as
the bo they were mapping were incorrectly generating SEGFAULT errors in
the fault handler.

Reported-by: Joseph Dolinak <kanilo2@yahoo.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo_vm.c