Fix: read mmap returned len check

Signed-off-by: David Goulet <dgoulet@efficios.com>