svn commit: r268518 - stable/10/sys/dev/mrsas
Xin LI
delphij at FreeBSD.org
Fri Jul 11 00:14:30 UTC 2014
Author: delphij
Date: Fri Jul 11 00:14:29 2014
New Revision: 268518
URL: http://svnweb.freebsd.org/changeset/base/268518
Log:
Correct memset size.
Submitted by: Sascha Wildner (swildner at dragonflybsd dot org)
Reviewed by: Kashyap Desai <kashyap.desai avagotech.com>
Modified:
stable/10/sys/dev/mrsas/mrsas_fp.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/mrsas/mrsas_fp.c
==============================================================================
--- stable/10/sys/dev/mrsas/mrsas_fp.c Fri Jul 11 00:11:24 2014 (r268517)
+++ stable/10/sys/dev/mrsas/mrsas_fp.c Fri Jul 11 00:14:29 2014 (r268518)
@@ -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;
More information about the svn-src-stable
mailing list