diff options
author | delphij <delphij@FreeBSD.org> | 2014-07-11 00:14:29 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-07-11 00:14:29 +0000 |
commit | ed3fedcd8dd812357cfafd0ac89cc5af5ff2b09f (patch) | |
tree | c42be228ed0119e6c42dd976de0a2c3b95c71adf /sys/dev/mrsas | |
parent | 514b9c8a8a6121b729df8ba7dba1da66d5900807 (diff) | |
download | FreeBSD-src-ed3fedcd8dd812357cfafd0ac89cc5af5ff2b09f.zip FreeBSD-src-ed3fedcd8dd812357cfafd0ac89cc5af5ff2b09f.tar.gz |
Correct memset size.
Submitted by: Sascha Wildner (swildner at dragonflybsd dot org)
Reviewed by: Kashyap Desai <kashyap.desai avagotech.com>
Diffstat (limited to 'sys/dev/mrsas')
-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; |