am c214fe59: Fix incorrect error check for mmap

* commit 'c214fe59fc48740ed003a3cde4e5a60517c5d5ce':
  Fix incorrect error check for mmap