Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 20:09:02 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267838 - head/sys/dev/mrsas
Message-ID:  <201406242009.s5OK92kd019736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Jun 24 20:09:02 2014
New Revision: 267838
URL: http://svnweb.freebsd.org/changeset/base/267838

Log:
  Correct memset size.
  
  Submitted by:	Sascha Wildner (swildner at dragonflybsd dot org)
  Reviewed by:	Kashyap Desai <kashyap.desai avagotech.com>
  MFC after:	2 weeks

Modified:
  head/sys/dev/mrsas/mrsas_fp.c

Modified: head/sys/dev/mrsas/mrsas_fp.c
==============================================================================
--- head/sys/dev/mrsas/mrsas_fp.c	Tue Jun 24 19:59:13 2014	(r267837)
+++ head/sys/dev/mrsas/mrsas_fp.c	Tue Jun 24 20:09:02 2014	(r267838)
@@ -1219,7 +1219,7 @@ void mrsas_set_pd_lba(MRSAS_RAID_SCSI_IO
 	    opcode = cdb[0] == READ_6 ? READ_10 : WRITE_10;
 	    control = cdb[5];
 		
-	    memset(cdb, 0, sizeof(cdb));
+	    memset(cdb, 0, sizeof(io_request->CDB.CDB32));
 	    cdb[0] = opcode;
 	    cdb[9] = control;
 



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