drm/i915: Correctly set the write flag for get_user_pages in pread.
commite5e9ecde63ba365b510df0f4a9cb3b048a0ad785
authorEric Anholt <eric@anholt.net>
Tue, 7 Apr 2009 23:01:22 +0000 (7 16:01 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 8 Apr 2009 17:50:56 +0000 (8 10:50 -0700)
tree2ef878606a0483e7cac427ebb40dabd1c2346ba7
parent2bc43b5cf5158a26fa1328234795abed2dff5275
drm/i915: Correctly set the write flag for get_user_pages in pread.

Otherwise, the results of our read didn't show up when we were faulting in
the page being read into (as happened with a testcase reading into a big
stack area).  Likely accounts for some conformance test failures.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c