svn commit: r295712 - head/sys/geom

Warner Losh imp at FreeBSD.org
Wed Feb 17 18:28:39 UTC 2016


Author: imp
Date: Wed Feb 17 18:28:38 2016
New Revision: 295712
URL: https://svnweb.freebsd.org/changeset/base/295712

Log:
  Use the right size for zeroing.
  
  Submitted by: rpokala@

Modified:
  head/sys/geom/geom_io.c

Modified: head/sys/geom/geom_io.c
==============================================================================
--- head/sys/geom/geom_io.c	Wed Feb 17 18:28:03 2016	(r295711)
+++ head/sys/geom/geom_io.c	Wed Feb 17 18:28:38 2016	(r295712)
@@ -268,7 +268,7 @@ void
 g_reset_bio(struct bio *bp)
 {
 
-	bzero(bp, sizeof(bp));
+	bzero(bp, sizeof(*bp));
 }
 
 void


More information about the svn-src-head mailing list