aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic79xx_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_proc.c')
-rw-r--r--drivers/scsi/aic7xxx/aic79xx_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_proc.c b/drivers/scsi/aic7xxx/aic79xx_proc.c
index 2058aa9b5c80..cffdd104f9e4 100644
--- a/drivers/scsi/aic7xxx/aic79xx_proc.c
+++ b/drivers/scsi/aic7xxx/aic79xx_proc.c
@@ -178,9 +178,9 @@ ahd_dump_target_state(struct ahd_softc *ahd, struct info_str *info,
178 copy_info(info, "\tUser: "); 178 copy_info(info, "\tUser: ");
179 ahd_format_transinfo(info, &tinfo->user); 179 ahd_format_transinfo(info, &tinfo->user);
180 starget = ahd->platform_data->starget[target_offset]; 180 starget = ahd->platform_data->starget[target_offset];
181 targ = scsi_transport_target_data(starget); 181 if (starget == NULL)
182 if (targ == NULL)
183 return; 182 return;
183 targ = scsi_transport_target_data(starget);
184 184
185 copy_info(info, "\tGoal: "); 185 copy_info(info, "\tGoal: ");
186 ahd_format_transinfo(info, &tinfo->goal); 186 ahd_format_transinfo(info, &tinfo->goal);