commit | 0202ce8a90efdc81600e7bf9712d8c324081a924 | [log] [tgz] |
---|---|---|
author | Zdenek Kabelac <zkabelac@redhat.com> | Wed Nov 08 13:44:55 2017 +0100 |
committer | Shaohua Li <shli@fb.com> | Fri Nov 10 11:43:04 2017 -0800 |
tree | f260f7241e8fc6e3ed5253374f0eca0e8b9e696a | |
parent | 97f0eb9f0fec0563c1c796d95123e871b8bb65c0 [diff] |
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: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Shaohua Li <shli@fb.com>