summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2000-11-13 03:35:43 +0000
committergibbs <gibbs@FreeBSD.org>2000-11-13 03:35:43 +0000
commit97af3e1d10b72a68b0b191fff20964274e3b80ed (patch)
treee0db1ee251556f3a98e4df854321fdef16926192 /sys/dev
parent0adaf25fc249b37e81c324fb9677dc67b420ed60 (diff)
downloadFreeBSD-src-97af3e1d10b72a68b0b191fff20964274e3b80ed.zip
FreeBSD-src-97af3e1d10b72a68b0b191fff20964274e3b80ed.tar.gz
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.
Diffstat (limited to 'sys/dev')
-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 e21b9a1..4f78801 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:
OpenPOWER on IntegriCloud