summaryrefslogtreecommitdiff
path: root/linux-core/drm_os_linux.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-03-25 09:47:36 +0000
committerDave Airlie <airlied@linux.ie>2005-03-25 09:47:36 +0000
commit2ad83874287622875f6979da3cd505d18b697704 (patch)
tree1e06922225daa184c7345b4a4e252b2613629373 /linux-core/drm_os_linux.h
parentca04fbc7bad746b5f323a36407b4d99a3a2afd02 (diff)
verify_area is deprecated, replaced by access_ok. Seems I missed this one
when I did the big overall conversion. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Diffstat (limited to 'linux-core/drm_os_linux.h')
-rw-r--r--linux-core/drm_os_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_os_linux.h b/linux-core/drm_os_linux.h
index 0c0bffc0..1ed1cca4 100644
--- a/linux-core/drm_os_linux.h
+++ b/linux-core/drm_os_linux.h
@@ -113,7 +113,7 @@ static __inline__ int mtrr_del(int reg, unsigned long base, unsigned long size)
copy_to_user(arg1, arg2, arg3)
/* Macros for copyfrom user, but checking readability only once */
#define DRM_VERIFYAREA_READ( uaddr, size ) \
- verify_area( VERIFY_READ, uaddr, size )
+ (access_ok( VERIFY_READ, uaddr, size) ? 0 : -EFAULT)
#define DRM_COPY_FROM_USER_UNCHECKED(arg1, arg2, arg3) \
__copy_from_user(arg1, arg2, arg3)
#define DRM_COPY_TO_USER_UNCHECKED(arg1, arg2, arg3) \