From 96dfd8bb97dcc5af35d52a6b302c7a606de2af6d Mon Sep 17 00:00:00 2001 From: "Justin T. Gibbs" Date: Mon, 13 Nov 2000 03:35:43 +0000 Subject: 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. --- sys/dev/aic7xxx/aic7xxx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev') 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: -- cgit v1.3