Apply r30890, adding a missing put_vnode() on error, to write_overlay as well.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30899 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-05-28 17:31:18 +00:00
parent 940e8add93
commit 5f447d9b4c
@@ -1592,6 +1592,7 @@ overlay_get_vnode(fs_volume *volume, ino_t id, fs_vnode *vnode, int *_type,
status = node->InitCheck();
if (status != B_OK) {
vnode->ops->put_vnode(volume->super_volume, vnode, reenter);
delete node;
return status;
}