svn commit: r210643 - in stable: 7/bin/chio 8/bin/chio

Ulrich Spoerlein uqs at FreeBSD.org
Fri Jul 30 12:36:41 UTC 2010


Author: uqs
Date: Fri Jul 30 12:36:40 2010
New Revision: 210643
URL: http://svn.freebsd.org/changeset/base/210643

Log:
  MFC r208730:
  Zero struct before reading from it
  
  PR:		140384

Modified:
  stable/7/bin/chio/chio.c
Directory Properties:
  stable/7/bin/chio/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/8/bin/chio/chio.c
Directory Properties:
  stable/8/bin/chio/   (props changed)

Modified: stable/7/bin/chio/chio.c
==============================================================================
--- stable/7/bin/chio/chio.c	Fri Jul 30 12:04:29 2010	(r210642)
+++ stable/7/bin/chio/chio.c	Fri Jul 30 12:36:40 2010	(r210643)
@@ -1072,6 +1072,7 @@ find_element(char *voltag, uint16_t *et,
 
 	/* Read in the changer slots */
 	if (cp.cp_nslots > 0) {
+		(void) memset(&cesr, 0, sizeof(cesr));
 		cesr.cesr_element_type = CHET_ST;
 		cesr.cesr_element_base = 0;
 		cesr.cesr_element_count = cp.cp_nslots;


More information about the svn-src-all mailing list