Do not ignore an error from vm_mmap_object().

Found and reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-06-27 20:12:13 +00:00
parent 59fe76647c
commit 34d3e89f33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320422

View File

@ -926,7 +926,7 @@ shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize,
shmfd->shm_object, foff, FALSE, td);
if (error != 0)
vm_object_deallocate(shmfd->shm_object);
return (0);
return (error);
}
static int