diff options
author | Helge Deller <deller@gmx.de> | 2013-11-12 21:01:24 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-11-20 00:09:42 +0100 |
commit | 964f413323e8306ac0acb5e08ccdb5f12418835b (patch) | |
tree | 717807e78c2b118180264b4b3bc1115cfa6ebe07 /arch/parisc/lib | |
parent | parisc: improve SIGBUS/SIGSEGV error reporting (diff) | |
download | linux-964f413323e8306ac0acb5e08ccdb5f12418835b.tar.xz linux-964f413323e8306ac0acb5e08ccdb5f12418835b.zip |
parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
Signed-off-by: Helge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'arch/parisc/lib')
-rw-r--r-- | arch/parisc/lib/memcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c index 6c5b5d35bfc0..413dc1769299 100644 --- a/arch/parisc/lib/memcpy.c +++ b/arch/parisc/lib/memcpy.c @@ -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? */ |