summaryrefslogtreecommitdiff
path: root/vm/vm_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_object.c')
-rw-r--r--vm/vm_object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vm_object.c b/vm/vm_object.c
index 2cb4eed3..0d04b002 100644
--- a/vm/vm_object.c
+++ b/vm/vm_object.c
@@ -20,6 +20,7 @@
*/
#include <assert.h>
+#include <errno.h>
#include <stddef.h>
#include <stdint.h>
@@ -72,7 +73,7 @@ vm_object_insert(struct vm_object *object, struct vm_page *page,
mutex_lock(&object->lock);
if (offset >= object->size) {
- error = ERROR_INVAL;
+ error = EINVAL;
goto error;
}