提交 31321bc9 编写于 作者: R Robert P. J. Day 提交者: Haavard Skinnemoen

Remove a couple final references to obsolete verify_area().

  Remove a couple final references to the obsolete verify_area() call,
which was long ago replaced by access_ok().
Signed-off-by: NRobert P. J. Day <rpjday@mindspring.com>
Acked-by: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
上级 5986a2ec
...@@ -38,7 +38,7 @@ __wsum csum_partial_copy_generic(const void *src, void *dst, int len, ...@@ -38,7 +38,7 @@ __wsum csum_partial_copy_generic(const void *src, void *dst, int len,
* passed in an incorrect kernel address to one of these functions. * passed in an incorrect kernel address to one of these functions.
* *
* If you use these functions directly please don't forget the * If you use these functions directly please don't forget the
* verify_area(). * access_ok().
*/ */
static inline static inline
__wsum csum_partial_copy_nocheck(const void *src, void *dst, __wsum csum_partial_copy_nocheck(const void *src, void *dst,
......
...@@ -68,12 +68,6 @@ static inline void set_fs(mm_segment_t s) ...@@ -68,12 +68,6 @@ static inline void set_fs(mm_segment_t s)
#define access_ok(type, addr, size) (likely(__range_ok(addr, size) == 0)) #define access_ok(type, addr, size) (likely(__range_ok(addr, size) == 0))
static inline int
verify_area(int type, const void __user *addr, unsigned long size)
{
return access_ok(type, addr, size) ? 0 : -EFAULT;
}
/* Generic arbitrary sized copy. Return the number of bytes NOT copied */ /* Generic arbitrary sized copy. Return the number of bytes NOT copied */
extern __kernel_size_t __copy_user(void *to, const void *from, extern __kernel_size_t __copy_user(void *to, const void *from,
__kernel_size_t n); __kernel_size_t n);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册