[Bug 1108981] jack: fix return value check of mmap()