Fix for non-contiguous memory

This fixes an issue where if the first chunk of memory is offset, then
the subsequent chunks will have the same size as the first chunk rather
than the correct chunk size.

Bug: 205009850

Change-Id: I955983c0e9d7c9250ddcaa1a99fc51ac64262184
1 file changed