projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d1cb2
)
parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
author
Helge Deller
<deller@gmx.de>
Tue, 12 Nov 2013 20:01:24 +0000
(21:01 +0100)
committer
Helge Deller
<deller@gmx.de>
Tue, 19 Nov 2013 23:09:42 +0000
(
00:09
+0100)
Signed-off-by: Helge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
arch/parisc/lib/memcpy.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/lib/memcpy.c
b/arch/parisc/lib/memcpy.c
index 6c5b5d35bfc023bf6bb146e47d04601d4cab85b1..413dc1769299685f00289193ca301ba7e2c0839d 100644
(file)
--- 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? */