* [PATCH] aic7xxx/79xx: fix another potential panic due to a non existent target
@ 2005-08-05 21:24 James Bottomley
0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2005-08-05 21:24 UTC (permalink / raw)
To: SCSI Mailing List
I ran into this one sending bus resets across the hardware.
James
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c
--- 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, ch
* are identical to those last reported.
*/
starget = ahd->platform_data->starget[target];
- targ = scsi_transport_target_data(starget);
- if (targ == NULL)
+ if (starget == NULL)
break;
+ targ = scsi_transport_target_data(starget);
target_ppr_options =
(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
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -1614,9 +1614,9 @@ ahc_send_async(struct ahc_softc *ahc, ch
if (channel == 'B')
target_offset += 8;
starget = ahc->platform_data->starget[target_offset];
- targ = scsi_transport_target_data(starget);
- if (targ == NULL)
+ if (starget == NULL)
break;
+ targ = scsi_transport_target_data(starget);
target_ppr_options =
(spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-05 21:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 21:24 [PATCH] aic7xxx/79xx: fix another potential panic due to a non existent target James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox