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
This commit is contained in:
Sean Bruno 2013-04-28 20:46:32 +00:00
parent 6f2af3fcf3
commit 3d3ddb44cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250031

View File

@ -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);