aboutsummaryrefslogtreecommitdiff
path: root/sys/include/vm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/vm')
-rw-r--r--sys/include/vm/obj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/vm/obj.h b/sys/include/vm/obj.h
index e4258ac..6e24516 100644
--- a/sys/include/vm/obj.h
+++ b/sys/include/vm/obj.h
@@ -49,7 +49,7 @@ struct vm_object {
#define vm_object_ref(OBJPTR) (++(OBJPTR)->ref)
#define vm_object_unref(OBJPTR) do { \
- if ((OBJPTR)->ref > 1) { \
+ if ((OBJPTR)->ref > 0) { \
--(OBJPTR)->ref; \
} \
} while (0);