diff options
author | Dave Airlie <airlied@linux.ie> | 2005-03-25 09:47:36 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-03-25 09:47:36 +0000 |
commit | 2ad83874287622875f6979da3cd505d18b697704 (patch) | |
tree | 1e06922225daa184c7345b4a4e252b2613629373 | |
parent | ca04fbc7bad746b5f323a36407b4d99a3a2afd02 (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>
-rw-r--r-- | linux-core/drm_os_linux.h | 2 |
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) \ |