If the end of a range is at the end of the virtual address space, (base + size) is 0. Use (base + size - 1) instead. Change-Id: I7d02250d765df0ab2bd23b60ee7a484951238c58