Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 20:46:33 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250031 - head/sys/dev/ciss
Message-ID:  <201304282046.r3SKkXwP062932@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sun Apr 28 20:46:32 2013
New Revision: 250031
URL: http://svnweb.freebsd.org/changeset/base/250031

Log:
  The controller does not zero this data structure, ever.
  
  Zero it out here so we do not misinterpret the data error.
  
  Obtained from:	Yahoo! Inc.
  MFC after:	2 weeks

Modified:
  head/sys/dev/ciss/ciss.c

Modified: head/sys/dev/ciss/ciss.c
==============================================================================
--- head/sys/dev/ciss/ciss.c	Sun Apr 28 19:38:59 2013	(r250030)
+++ head/sys/dev/ciss/ciss.c	Sun Apr 28 20:46:32 2013	(r250031)
@@ -2487,6 +2487,7 @@ ciss_preen_command(struct ciss_request *
     cc->header.sg_total = 0;
     cc->header.host_tag = cr->cr_tag << 2;
     cc->header.host_tag_zeroes = 0;
+    bzero(&(cc->sg[0]), CISS_COMMAND_ALLOC_SIZE - sizeof(struct ciss_command));
     cmdphys = cr->cr_ccphys;
     cc->error_info.error_info_address = cmdphys + sizeof(struct ciss_command);
     cc->error_info.error_info_length = CISS_COMMAND_ALLOC_SIZE - sizeof(struct ciss_command);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304282046.r3SKkXwP062932>