summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-07-04 05:37:58 +0000
committerkib <kib@FreeBSD.org>2017-07-04 05:37:58 +0000
commit55e36ae8f1c6e39f53bac891aa4c05ba23eedfff (patch)
tree959bf739a616e086fdbfefc544d8ec7c09f3b870
parentff3a058c4f832f66c1a779cf9bd05f758ad411d8 (diff)
downloadFreeBSD-src-55e36ae8f1c6e39f53bac891aa4c05ba23eedfff.zip
FreeBSD-src-55e36ae8f1c6e39f53bac891aa4c05ba23eedfff.tar.gz
MFC r320422:
Do not ignore an error from vm_mmap_object(). Approved by: re (delphij)
-rw-r--r--sys/kern/uipc_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 0aee62f..5228253 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -906,7 +906,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
OpenPOWER on IntegriCloud