Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 964f4133 authored by Helge Deller's avatar Helge Deller
Browse files

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



Signed-off-by: default avatarHelge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
parent 49d1cb2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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? */