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:
parent
59fe76647c
commit
34d3e89f33
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user