Lock an update to a vm_object's ref_count.

This commit is contained in:
Alan Cox 2003-05-01 03:51:05 +00:00
parent cda4b241e2
commit ab7b0ae578
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114378

View File

@ -605,7 +605,9 @@ vop_stdcreatevobject(ap)
* Dereference the reference we just created. This assumes
* that the object is associated with the vp.
*/
VM_OBJECT_LOCK(object);
object->ref_count--;
VM_OBJECT_UNLOCK(object);
vrele(vp);
} else {
if (object->flags & OBJ_DEAD) {