From 55fe07ad98315d9471a86affd0680749e349a0a6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 13 May 2013 12:59:38 +0200 Subject: mm: fix leak in fail path If the dm_realloc would fail, the already allocate _maps_buffer memory would have been lost (overwritten with NULL). Fix this by using temporary line buffer. Also add a minor cleanup to set end of buffer to '\0', only when we really know the file size fits the preallocated buffer. --- WHATS_NEW | 1 + 1 file changed, 1 insertion(+) (limited to 'WHATS_NEW') diff --git a/WHATS_NEW b/WHATS_NEW index 2cdd0cdda..11d3e6fd8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Fix memory resource leak in memlocking error path. Fix premature DM version checking which caused useless mapper/control access. Add "active" LV reporting field to show activation state. Add "monitor" segment reporting field to show dmevent monitoring status. -- cgit v1.2.3