VMWare ESX reports > 16 targets for the LSI-Logic

U320 model it emulates. Then it crashes and burns
when you probe that high.
This commit is contained in:
Matt Jacob 2006-06-26 05:44:18 +00:00
parent 5ce1b00496
commit 8ca0124685

View file

@ -3024,6 +3024,12 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
*/
if (cpi->max_target > 255)
cpi->max_target = 255;
/*
* XXX: VMware ESX reports > 16 devices and then dies
* XXX: when we probe.
*/
if (mpt->is_spi && cpi->max_target > 15)
cpi->max_target = 15;
cpi->max_lun = 7;
cpi->initiator_id = mpt->mpt_ini_id;