PERFORCE change 163673 for review

Alexander Motin mav at FreeBSD.org
Sat Jun 6 22:08:10 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=163673

Change 163673 by mav at mav_mavbook on 2009/06/06 22:07:22

	Clean ATA command structure before use.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#18 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#18 (text+ko) ====

@@ -1027,6 +1027,11 @@
 	ataio->data_ptr = data_ptr;
 	ataio->dxfer_len = dxfer_len;
 	ataio->tag_action = tag_action;
+	ataio->cmd.command = 0;
+	ataio->cmd.flags = 0;
+	ataio->cmd.feature = 0;
+	ataio->cmd.count = 0;
+	ataio->cmd.lba = 0;
 }
 
 void cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended);


More information about the p4-projects mailing list