diff --git a/src/system/kernel/vm/VMCache.cpp b/src/system/kernel/vm/VMCache.cpp index efc17c539b..6c9de3a856 100644 --- a/src/system/kernel/vm/VMCache.cpp +++ b/src/system/kernel/vm/VMCache.cpp @@ -580,8 +580,11 @@ status_t VMCache::Init(uint32 cacheType, uint32 allocationFlags) { mutex_init(&fLock, "VMCache"); + VMCache dummyCache; list_init_etc(&consumers, offset_of_member(dummyCache, consumer_link)); + // TODO: This is disgusting! Use DoublyLinkedList! + areas = NULL; fRefCount = 1; source = NULL;