doc/share/security/patches/SA-04:02/shmat.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

14 lines
564 B
Diff

Index: sys/kern/sysv_shm.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/sysv_shm.c,v
retrieving revision 1.89
diff -C3 -c -r1.89 sysv_shm.c
*** sys/kern/sysv_shm.c 7 Nov 2003 04:47:14 -0000 1.89
--- sys/kern/sysv_shm.c 3 Feb 2004 15:12:26 -0000
***************
*** 378,380 ****
--- 378,381 ----
rv = vm_map_find(&p->p_vmspace->vm_map, shm_handle->shm_object,
0, &attach_va, size, (flags & MAP_FIXED)?0:1, prot, prot, 0);
if (rv != KERN_SUCCESS) {
+ vm_object_deallocate(shm_handle->shm_object);