提交 964f4133 编写于 作者: H Helge Deller

parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.

Signed-off-by: NHelge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
上级 49d1cb2b
......@@ -529,7 +529,7 @@ long probe_kernel_read(void *dst, const void *src, size_t size)
{
unsigned long addr = (unsigned long)src;
if (size < 0 || addr < PAGE_SIZE)
if (addr < PAGE_SIZE)
return -EFAULT;
/* check for I/O space F_EXTEND(0xfff00000) access as well? */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册