Using xmalloc in there seems wrong. A plain malloc would do and the error would be returned back to the mmap caller. Morten - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html