Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c4796e21
Commit
c4796e21
authored
Aug 23, 2014
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md/raid10: another memory leak due to reshape.
Signed-off-by:
NeilBrown
<
neilb@suse.de
>
parent
3fd83717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/md/raid10.c
drivers/md/raid10.c
+3
-1
No files found.
drivers/md/raid10.c
View file @
c4796e21
...
...
@@ -3834,6 +3834,8 @@ static int stop(struct mddev *mddev)
mempool_destroy
(
conf
->
r10bio_pool
);
safe_put_page
(
conf
->
tmppage
);
kfree
(
conf
->
mirrors
);
kfree
(
conf
->
mirrors_old
);
kfree
(
conf
->
mirrors_new
);
kfree
(
conf
);
mddev
->
private
=
NULL
;
return
0
;
...
...
@@ -4121,7 +4123,7 @@ static int raid10_start_reshape(struct mddev *mddev)
memcpy
(
conf
->
mirrors_new
,
conf
->
mirrors
,
sizeof
(
struct
raid10_info
)
*
conf
->
prev
.
raid_disks
);
smp_mb
();
kfree
(
conf
->
mirrors_old
);
/* FIXME and elsewhere */
kfree
(
conf
->
mirrors_old
);
conf
->
mirrors_old
=
conf
->
mirrors
;
conf
->
mirrors
=
conf
->
mirrors_new
;
conf
->
mirrors_new
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment