diff options
author | kib <kib@FreeBSD.org> | 2008-12-29 12:45:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-29 12:45:11 +0000 |
commit | bd5d614be80b38952e55e5516853af28f99d108d (patch) | |
tree | 3e48d98f96707e37fafe396ec8c27fa0b15ef680 /sys/fs/procfs/procfs_map.c | |
parent | 76cd718eec26d0dbb71704e2a179ab96d9c6527d (diff) | |
download | FreeBSD-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/fs/procfs/procfs_map.c')
-rw-r--r-- | sys/fs/procfs/procfs_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index 2d3c17e..ed04d38 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -224,7 +224,7 @@ procfs_doprocmap(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, |