diff options
author | kib <kib@FreeBSD.org> | 2008-12-10 16:11:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-10 16:11:09 +0000 |
commit | ca4d4f349489a6d5a1a76fe9b0dc076495afa554 (patch) | |
tree | 51d20f0423aa0cfb60f071e2dd84a1a6d2b7bad1 /sys/compat/linprocfs | |
parent | 75eeed4f1f01cc78a826c4ab15d1ca640ac8f757 (diff) | |
download | FreeBSD-src-ca4d4f349489a6d5a1a76fe9b0dc076495afa554.zip FreeBSD-src-ca4d4f349489a6d5a1a76fe9b0dc076495afa554.tar.gz |
Relock user map earlier, to have the lock held when break leaves the
loop earlier due to sbuf error.
Pointy hat to: me
Submitted by: dchagin
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 11d1ae0..1023608 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -969,11 +969,11 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) ); if (freename) free(freename, M_TEMP); + vm_map_lock_read(map); if (error == -1) { error = 0; break; } - vm_map_lock_read(map); if (last_timestamp + 1 != map->timestamp) { /* * Look again for the entry because the map was |