diff options
author | delphij <delphij@FreeBSD.org> | 2014-06-24 20:09:02 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-06-24 20:09:02 +0000 |
commit | 8f645b229cd214eb13760030e448557e96a8527b (patch) | |
tree | e55f540bb9820a496835655177904f5d95f37bfd | |
parent | 928160360e0bd1ccb898a0e9be8fcc5328e89141 (diff) | |
download | FreeBSD-src-8f645b229cd214eb13760030e448557e96a8527b.zip FreeBSD-src-8f645b229cd214eb13760030e448557e96a8527b.tar.gz |
Correct memset size.
Submitted by: Sascha Wildner (swildner at dragonflybsd dot org)
Reviewed by: Kashyap Desai <kashyap.desai avagotech.com>
MFC after: 2 weeks
-rw-r--r-- | sys/dev/mrsas/mrsas_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mrsas/mrsas_fp.c b/sys/dev/mrsas/mrsas_fp.c index 69a996f..91005a5 100644 --- a/sys/dev/mrsas/mrsas_fp.c +++ b/sys/dev/mrsas/mrsas_fp.c @@ -1219,7 +1219,7 @@ void mrsas_set_pd_lba(MRSAS_RAID_SCSI_IO_REQUEST *io_request, u_int8_t cdb_len, 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; |