Remove incorrect bit shift when assigning the LUN request field

This caused duplicate targets appearing on Google Compute Engine
instances.

PR:		kern/185626
Submitted by:	Venkatesh Srinivas <venkateshs@google.com>
MFC after:	3 days
This commit is contained in:
Bryan Venteicher 2014-01-12 17:40:47 +00:00
parent 0b55a5a4af
commit bf51187b26

View file

@ -1539,7 +1539,7 @@ vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[])
lun[0] = 1;
lun[1] = ccbh->target_id;
lun[2] = 0x40 | ((ccbh->target_lun >> 8) & 0x3F);
lun[3] = (ccbh->target_lun >> 8) & 0xFF;
lun[3] = ccbh->target_lun & 0xFF;
}
static void