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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to