[Stgt-devel] Not updating Serial Number in SCSI Inquiry page correctly.

Mark Harvey mark_harvey
Sat Mar 17 01:29:44 CET 2007


In page 0x80 of SCSI Inquiry, forgot to decrement the destination
pointer.

===================================================================
--- spc.c       (revision 835)
+++ spc.c       (working copy)
@@ -108,7 +108,7 @@
                                p = data + 4 + tmp - 1;
                                q = cmd->dev->scsi_sn + SCSI_SN_LEN - 1;
 
-                               for (; tmp > 0; tmp--, q)
+                               for (; tmp > 0; tmp--, q--)
                                        *(p--) = *q;
                        }
                } else if (scb[2] == 0x83) {

 

________________________________

Cheer
Mark Harvey




More information about the stgt mailing list