Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0202ce8a authored by Zdenek Kabelac's avatar Zdenek Kabelac Committed by Shaohua Li
Browse files

md: release allocated bitset sync_set



Patch fixes kmemleak on md_stop() path used likely only by dm-raid wrapper.
Code of md is using  mddev_put() where both bitsets are released however this
freeing is not shared.

Also set NULL to bio_set and sync_set pointers just like mddev_put is
doing.

Signed-off-by: default avatarZdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 97f0eb9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment