From 2ad83874287622875f6979da3cd505d18b697704 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 25 Mar 2005 09:47:36 +0000 Subject: 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 --- linux-core/drm_os_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- cgit v1.2.3