aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>2000-11-13 03:35:43 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>2000-11-13 03:35:43 +0000
commit96dfd8bb97dcc5af35d52a6b302c7a606de2af6d (patch)
treebf6ae832b9f5f722e1f859f126dabf1ce8bc1de3 /sys/dev/aic7xxx
parentd144b9d24016623f665beb65cb05c064ec9b173b (diff)
downloadsrc-96dfd8bb97dcc5af35d52a6b302c7a606de2af6d.tar.gz
src-96dfd8bb97dcc5af35d52a6b302c7a606de2af6d.zip
Don't attempt to reference a NULL scb_data area during teardown events
occurring early in initialization. This fixes attachments to the parity engines that FreeBSD doesn't support.
Notes
Notes: svn path=/head/; revision=68660
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/aic7xxx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c
index e21b9a191c55..4f788012aaed 100644
--- a/sys/dev/aic7xxx/aic7xxx.c
+++ b/sys/dev/aic7xxx/aic7xxx.c
@@ -3689,6 +3689,8 @@ ahc_fini_scbdata(struct ahc_softc *ahc)
struct scb_data *scb_data;
scb_data = ahc->scb_data;
+ if (scb_data == NULL)
+ return;
switch (scb_data->init_level) {
default: