summaryrefslogtreecommitdiffstats
path: root/sys/compat/linprocfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-12-29 12:45:11 +0000
committerkib <kib@FreeBSD.org>2008-12-29 12:45:11 +0000
commitbd5d614be80b38952e55e5516853af28f99d108d (patch)
tree3e48d98f96707e37fafe396ec8c27fa0b15ef680 /sys/compat/linprocfs
parent76cd718eec26d0dbb71704e2a179ab96d9c6527d (diff)
downloadFreeBSD-src-bd5d614be80b38952e55e5516853af28f99d108d.zip
FreeBSD-src-bd5d614be80b38952e55e5516853af28f99d108d.tar.gz
vm_map_lock_read() does not increment map->timestamp, so we should
compare map->timestamp with saved timestamp after map read lock is reacquired, not with saved timestamp + 1. The only consequence of the +1 was unconditional lookup of the next map entry, though. Tested by: pho Approved by: des MFC after: 2 weeks
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r--sys/compat/linprocfs/linprocfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 09c22e3..fc2eacb 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -980,7 +980,7 @@ linprocfs_doprocmaps(PFS_FILL_ARGS)
error = 0;
break;
}
- if (last_timestamp + 1 != map->timestamp) {
+ if (last_timestamp != map->timestamp) {
/*
* Look again for the entry because the map was
* modified while it was unlocked. Specifically,
OpenPOWER on IntegriCloud