drm/ttm: Fix vma page_prot bit manipulation
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2013 17:32:59 +0000 (09:32 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 13 Nov 2013 07:55:31 +0000 (23:55 -0800)
commit3943875e7b73fdd94dd9e911d69f0cee9ab66a89
tree1c23098a3a7da22c1983fbdc16d09d46dc0313aa
parent59c8e66378fb78adbcd05f0d09783dde6fef282b
drm/ttm: Fix vma page_prot bit manipulation

Fix a long-standing TTM issue where we manipulated the vma page_prot
bits while mmap_sem was taken in read mode only. We now make a local
copy of the vma structure which we pass when we set the ptes.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_vm.c