Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev /dev/mem cannot lseek over 0x80000000 on 32bit archi...
details: https://anonhg.NetBSD.org/src/rev/aed8381a19b4
branches: trunk
changeset: 348280:aed8381a19b4
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Oct 13 08:56:31 2016 +0000
description:
/dev/mem cannot lseek over 0x80000000 on 32bit architectures.
diffstat:
sys/dev/mm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 89296f0c6fa1 -r aed8381a19b4 sys/dev/mm.c
--- a/sys/dev/mm.c Thu Oct 13 06:48:07 2016 +0000
+++ b/sys/dev/mm.c Thu Oct 13 08:56:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.c,v 1.21 2016/07/11 16:13:28 matt Exp $ */
+/* $NetBSD: mm.c,v 1.22 2016/10/13 08:56:31 ryo Exp $ */
/*-
* Copyright (c) 2002, 2008, 2010 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.21 2016/07/11 16:13:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.22 2016/10/13 08:56:31 ryo Exp $");
#include "opt_compat_netbsd.h"
@@ -164,7 +164,7 @@
int color = 0;
/* Check for wrap around. */
- if ((intptr_t)uio->uio_offset != uio->uio_offset) {
+ if ((uintptr_t)uio->uio_offset != uio->uio_offset) {
return EFAULT;
}
paddr = uio->uio_offset & ~PAGE_MASK;
Home |
Main Index |
Thread Index |
Old Index