Index: linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c diff -u linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26 linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26.36.1 --- linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26 Tue May 8 21:50:17 2001 +++ linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c Sat May 26 19:35:04 2001 @@ -4837,6 +4837,10 @@ #if AHC_TARGET_MODE int group; + if (!scb->io_ctx) + BUG(); + if (!scb->hscb) + BUG(); group = XPT_FC_GROUP(scb->io_ctx->ccb_h.func_code); if (role == ROLE_INITIATOR) { match = (group != XPT_FC_GROUP_TMODE) @@ -4848,6 +4852,8 @@ || (tag == SCB_LIST_NULL)); } #else /* !AHC_TARGET_MODE */ + if (!scb->hscb) + BUG(); match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL)); #endif /* AHC_TARGET_MODE */ }