]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21f72cfc3f0b9ae2150607fe7bcf7d6670b13d85
treefb317ba8ce53d83ed433af06609dada44bdc3809
parent9a5dd9477764c759e0cc9ca47e1b2e3a61931e57
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