diff options
author | Sean Bruno <sbruno@FreeBSD.org> | 2013-04-28 20:46:32 +0000 |
---|---|---|
committer | Sean Bruno <sbruno@FreeBSD.org> | 2013-04-28 20:46:32 +0000 |
commit | 3d3ddb44cd3ae672c55265f5b75d6da537669ca8 (patch) | |
tree | 8a0d7f799316045b79071b2930d911e210b59b31 /sys/dev/ciss | |
parent | 6f2af3fcf3cfdd7ce4a493db8f825f462b6e6806 (diff) | |
download | src-3d3ddb44cd3ae672c55265f5b75d6da537669ca8.tar.gz src-3d3ddb44cd3ae672c55265f5b75d6da537669ca8.zip |
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
Notes
Notes:
svn path=/head/; revision=250031
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r-- | sys/dev/ciss/ciss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 968e7bb9a5de..f9e62e469a27 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -2487,6 +2487,7 @@ ciss_preen_command(struct ciss_request *cr) 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); |