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)
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>

No differences found