diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2005-08-05 17:24:54 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-08-05 17:49:15 -0400 |
commit | fc789a93994858b5e5a46afb96d0dcf6cc1b6f08 (patch) | |
tree | f83fa07a0dc721a41a7e5d984284b823aa39b261 /drivers/scsi/aic7xxx/aic7xxx_osm.c | |
parent | 79778a27be4c704552a18cf2a3e8b9e30623acd1 (diff) |
[SCSI] aic7xxx/79xx: fix another potential panic due to a non existent target
I ran into this one sending bus resets across the hardware.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |