md/bitmap: fix memory leak of temporary bitmap
authorZhao Heming <heming.zhao@suse.com>
Sun, 27 Sep 2020 05:40:13 +0000 (13:40 +0800)
committerSong Liu <songliubraving@fb.com>
Fri, 9 Oct 2020 05:37:39 +0000 (22:37 -0700)
commit1383b347a8ae4a69c04ae3746e6cb5c8d38e2585
treefb317ba8ce53d83ed433af06609dada44bdc3809
parentcf0b9b4821a2955f8a23813ef8f422208ced9bd7
md/bitmap: fix memory leak of temporary bitmap

Callers of get_bitmap_from_slot() are responsible to free the bitmap.

Suggested-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Zhao Heming <heming.zhao@suse.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c
drivers/md/md-cluster.c