diff options
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm.c | 4 | ||||
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 40f32bb23972..acaeebd50465 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c | |||
@@ -1617,9 +1617,9 @@ ahd_send_async(struct ahd_softc *ahd, char channel, | |||
1617 | * are identical to those last reported. | 1617 | * are identical to those last reported. |
1618 | */ | 1618 | */ |
1619 | starget = ahd->platform_data->starget[target]; | 1619 | starget = ahd->platform_data->starget[target]; |
1620 | targ = scsi_transport_target_data(starget); | 1620 | if (starget == NULL) |
1621 | if (targ == NULL) | ||
1622 | break; | 1621 | break; |
1622 | targ = scsi_transport_target_data(starget); | ||
1623 | 1623 | ||
1624 | target_ppr_options = | 1624 | target_ppr_options = |
1625 | (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) | 1625 | (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index e39361ac6a44..3fbc10e58cc2 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -1618,9 +1618,9 @@ ahc_send_async(struct ahc_softc *ahc, char channel, | |||
1618 | if (channel == 'B') | 1618 | if (channel == 'B') |
1619 | target_offset += 8; | 1619 | target_offset += 8; |
1620 | starget = ahc->platform_data->starget[target_offset]; | 1620 | starget = ahc->platform_data->starget[target_offset]; |
1621 | targ = scsi_transport_target_data(starget); | 1621 | if (starget == NULL) |
1622 | if (targ == NULL) | ||
1623 | break; | 1622 | break; |
1623 | targ = scsi_transport_target_data(starget); | ||
1624 | 1624 | ||
1625 | target_ppr_options = | 1625 | target_ppr_options = |
1626 | (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) | 1626 | (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) |