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.
This commit is contained in:
Justin T. Gibbs 2000-11-13 03:35:43 +00:00
parent d144b9d240
commit 96dfd8bb97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68660

View File

@ -3689,6 +3689,8 @@ ahc_fini_scbdata(struct ahc_softc *ahc)
struct scb_data *scb_data; struct scb_data *scb_data;
scb_data = ahc->scb_data; scb_data = ahc->scb_data;
if (scb_data == NULL)
return;
switch (scb_data->init_level) { switch (scb_data->init_level) {
default: default: