Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Muzi
OSKernel2023-NutOS
Commits
6f796685
Verified
Commit
6f796685
authored
1 year ago
by
xu_zh
Browse files
Options
Download
Patches
Plain Diff
fix: munmap_all release all buffer
parent
87f2bdc8
No related merge requests found
Pipeline
#8087
failed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/fs/mmap.cpp
+3
-0
kernel/fs/mmap.cpp
with
3 additions
and
0 deletions
+3
-0
kernel/fs/mmap.cpp
+
3
−
0
View file @
6f796685
...
...
@@ -149,6 +149,9 @@ void fs_munmap_all(std::list<mmap_t *> &mmap_list) {
uint8_t
*
data
=
mmap
->
data
;
size_t
npage
=
mmap
->
npage
;
mmap_write
(
mmap
);
for
(
auto
it
:
mmap
->
buf
)
{
buf_release
(
it
);
}
mmap_allocator
.
destroy
(
mmap
);
mmap_list
.
pop_front
();
free_npage
(
pcb
,
(
uintptr_t
)
data
,
npage
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets