svn commit: r192172 - user/kmacy/ZFS_MFC/sys/kern

Kip Macy kmacy at FreeBSD.org
Fri May 15 23:45:59 UTC 2009


Author: kmacy
Date: Fri May 15 23:45:58 2009
New Revision: 192172
URL: http://svn.freebsd.org/changeset/base/192172

Log:
  ensure that td_osd is zeroed on fork

Modified:
  user/kmacy/ZFS_MFC/sys/kern/kern_fork.c

Modified: user/kmacy/ZFS_MFC/sys/kern/kern_fork.c
==============================================================================
--- user/kmacy/ZFS_MFC/sys/kern/kern_fork.c	Fri May 15 23:40:07 2009	(r192171)
+++ user/kmacy/ZFS_MFC/sys/kern/kern_fork.c	Fri May 15 23:45:58 2009	(r192172)
@@ -505,6 +505,7 @@ again:
 	bzero(&td2->td_startzero,
 	    __rangeof(struct thread, td_startzero, td_endzero));
 
+	bzero(&td2->td_osd, sizeof(struct osd));
 	bcopy(&td->td_startcopy, &td2->td_startcopy,
 	    __rangeof(struct thread, td_startcopy, td_endcopy));
 


More information about the svn-src-user mailing list