summaryrefslogtreecommitdiff
path: root/src/stem/mem/seg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stem/mem/seg.c')
-rw-r--r--src/stem/mem/seg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stem/mem/seg.c b/src/stem/mem/seg.c
index f340c63..1452d61 100644
--- a/src/stem/mem/seg.c
+++ b/src/stem/mem/seg.c
@@ -8,7 +8,7 @@ struct segment_map *seg_map(struct segment* seg, struct page_directory *pagedir)
sm->seg = seg;
sm->pagedir = pagedir;
sm->next = pagedir->mappedSegs;
- pagedir->mappedSegs = sm->next;
+ pagedir->mappedSegs = sm;
return sm;
}