Skip to content

Commit 082b316

Browse files
committed
small fix in shm_map_page()
1 parent 8ec04b9 commit 082b316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/syscalls/shmat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ int shm_map_page(struct vma *vma, unsigned int cr2)
4646
printk("%s(): Oops, map_page() returned 0!\n", __FUNCTION__);
4747
return 1;
4848
}
49+
pg = &page_table[V2P(addr) >> PAGE_SHIFT];
50+
pg->count++;
4951
}
5052

51-
pg = &page_table[V2P(addr) >> PAGE_SHIFT];
52-
pg->count++; /* FIXME: temporary until fix count++ in map_page() (check 'todo') */
5353
return 0;
5454
}
5555

0 commit comments

Comments
 (0)