[patch] drm/ttm: return -EFAULT on copy_to_user error

2010-06-03 Thread Dan Carpenter
copy_to/from_user() returns the number of bytes remaining and this function normally returns negative error codes. No one uses the ttm_bo_fbdev_io() function so this change has no impact. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c

[patch] drm/ttm: return -EFAULT on copy_to_user error

2010-06-03 Thread Dan Carpenter
copy_to/from_user() returns the number of bytes remaining and this function normally returns negative error codes. No one uses the ttm_bo_fbdev_io() function so this change has no impact. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c