drm/i915: Fix up address spaces in slow_kernel_write()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 May 2010 13:15:35 +0000 (14:15 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 28 May 2010 18:03:29 +0000 (11:03 -0700)
commitab34c226812588de8f341ce48eb32c3fef5155a9
treee508b67a2d7ea0ea6450b0d8d9eedfb1f5cb2772
parent99a03df57c82ec20848d2634f652c07ac3504b98
drm/i915: Fix up address spaces in slow_kernel_write()

Since we now get_user_pages() outside of the mutex prior to performing
the copy, we kmap() the page inside the copy routine and so need to
perform an ordinary memcpy() and not copy_from_user().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c