Home
last modified time | relevance | path

Searched hist:"41 c337e8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/hiomapd/
H A Dwindows.c41c337e8 Mon Aug 13 09:00:16 CDT 2018 Andrew Jeffery <andrew@aj.id.au> windows: Always allocate a default-size dirty byte map

The current strategy caused memory corruption if windows are down-sized
from the default when a dirty-byte-map reallocation is triggered, as the
code would only allocate a dirty byte map of the current size. When the
window is resized up a gain the dirty byte map buffer is too small, and
we write off the end.

Instead, always allocate a byte map of the default window size which is
the largest the window can be.

Change-Id: I6f8dc414fb26c64e4947d5a19d6b795ead36e180
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>