Re: [PATCH] md/bitmap: call bitmap_file_unmap once bitmap_storage_alloc returns -ENOMEM

From
Shaohua Li <shli@kernel.org>
Date
2016-11-04 20:19:54
Reply to
Guoqing Jiang, 2016-10-31
On Mon, Oct 31, 2016 at 10:19:00AM +0800, Guoqing Jiang wrote:
It is possible that bitmap_storage_alloc could return -ENOMEM,
and some member inside store could be allocated such as filemap.

To avoid memory leak, we need to call bitmap_file_unmap to free
those members in the bitmap_resize.

Reviewed-by: NeilBrown <redacted>
Signed-off-by: Guoqing Jiang <redacted>
thanks, applied.
Thread (2 messages) 2 messages, 2 authors, last reply 2016-11-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help