Skip to content

Commit dbf5637

Browse files
sjp38dbaluta
authored andcommitted
templates/memory_mapping: Fix wrong number of lines to remove
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
1 parent cd51082 commit dbf5637

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/labs/templates/memory_mapping/kmmap/kmmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int my_seq_show(struct seq_file *seq, void *v)
118118
/* TODO 3: Get current process' mm_struct */
119119
mm = get_task_mm(current);
120120

121-
/* TODO 3/8: Iterate through all memory mappings */
121+
/* TODO 3/6: Iterate through all memory mappings */
122122
vma_iterator = mm->mmap;
123123
while (vma_iterator != NULL) {
124124
pr_info("%lx %lx\n", vma_iterator->vm_start, vma_iterator->vm_end);

tools/labs/templates/memory_mapping/vmmap/vmmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int my_seq_show(struct seq_file *seq, void *v)
119119
/* TODO 3: Get current process' mm_struct */
120120
mm = get_task_mm(current);
121121

122-
/* TODO 3/8: Iterate through all memory mappings and print ranges */
122+
/* TODO 3/6: Iterate through all memory mappings and print ranges */
123123
vma_iterator = mm->mmap;
124124
while (vma_iterator != NULL) {
125125
pr_info("%lx %lx\n", vma_iterator->vm_start, vma_iterator->vm_end);

0 commit comments

Comments
 (0)