vfs: check userland buffers before reading them.
[haiku.git] / src / system / kernel / util / KernelReferenceable.cpp
blobaf14c90d9580b40f9e558cfc7cf8eb81d7315941
1 /*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <util/KernelReferenceable.h>
9 #include <int.h>
12 void
13 KernelReferenceable::LastReferenceReleased()
15 if (are_interrupts_enabled())
16 delete this;
17 else
18 deferred_delete(this);