Message ID | alpine.LRH.2.21.1709182218590.15407@math.ut.ee (mailing list archive) |
---|---|
State | Deferred |
Headers | show |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c index 381846164003..7c692336c18d 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_core.c +++ b/drivers/scsi/aic7xxx/aic7xxx_core.c @@ -2828,7 +2828,11 @@ ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, devinfo->role = role; if (channel == 'B') devinfo->target_offset += 8; - devinfo->target_mask = (0x01 << devinfo->target_offset); + if (target < AHC_NUM_TARGETS + 8) { + devinfo->target_mask = (0x01 << devinfo->target_offset); + } else { + devinfo->target_mask = 0; + } } void