* [PATCH] parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
@ 2013-11-12 20:01 Helge Deller
0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2013-11-12 20:01 UTC (permalink / raw)
To: linux-parisc, James Bottomley; +Cc: Mikulas Patocka
Signed-off-by: Helge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c
index b5507ec..32f0303 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? */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-12 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 20:01 [PATCH] parisc: size_t is unsigned, so comparison size < 0 doesn't make sense Helge Deller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.