From 67804f25edcff8690f7ec142d8b0ba7702bfd5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 27 Oct 2008 14:33:58 +0000 Subject: [PATCH] * fs_unmount() removed the vnodes of the fs_mount twice since r28215, triggering an assert. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28344 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index 69e84c8e77..24a3531a16 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -7107,7 +7107,7 @@ fs_unmount(char *path, dev_t mountID, uint32 flags, bool kernel) // Free all vnodes associated with this mount. // They will be removed from the mount list by free_vnode(), so // we don't have to do this. - while ((vnode = mount->vnodes.RemoveHead()) != NULL) { + while ((vnode = mount->vnodes.Head()) != NULL) { free_vnode(vnode, false); }