Commit c32a17b8 authored by Jens Axboe's avatar Jens Axboe

This patch fixes a bug that appears when you have more than 16 physical

LUNs attached to a cciss controller, and a tape drive is beyond the 16th        
LUN.  In such a case, the tape drive would not be accessible without this       
patch.  Applies to 2.5.4-pre3.  -- steve.cameron@compaq.com            
parent 74c01024
......@@ -1086,10 +1086,10 @@ cciss_scsi_do_report_phys_luns(ctlr_info_t *c,
cdb[3] = 0;
cdb[4] = 0;
cdb[5] = 0;
cdb[6] = (sizeof(*buf) >> 24) & 0xFF; //MSB
cdb[7] = (sizeof(*buf) >> 16) & 0xFF;
cdb[8] = (sizeof(*buf) >> 8) & 0xFF;
cdb[9] = sizeof(*buf) & 0xFF;
cdb[6] = (bufsize >> 24) & 0xFF; //MSB
cdb[7] = (bufsize >> 16) & 0xFF;
cdb[8] = (bufsize >> 8) & 0xFF;
cdb[9] = bufsize & 0xFF;
cdb[10] = 0;
cdb[11] = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment