devobj/fileobj: do not try to free memory for device file mappings

This commit is contained in:
Balazs Gerofi
2017-01-08 11:49:55 +09:00
parent d34884f9a4
commit 1ff0afe6fb
5 changed files with 11 additions and 3 deletions

View File

@ -213,7 +213,7 @@ int fileobj_create(int fd, struct memobj **objp, int *maxprotp)
memset(newobj, 0, sizeof(*newobj));
newobj->memobj.ops = &fileobj_ops;
newobj->memobj.flags = MF_HAS_PAGER;
newobj->memobj.flags = MF_HAS_PAGER | MF_REG_FILE;
newobj->handle = result.handle;
newobj->sref = 1;
newobj->cref = 1;