diff options
author | ken <ken@FreeBSD.org> | 1998-09-22 21:42:46 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-09-22 21:42:46 +0000 |
commit | 483438c0a85530a486241abb40b9af781dd73ccc (patch) | |
tree | 1bebe7ecc6dadd1817617129de8be20f377cf431 /sys/pci | |
parent | d1cbfc6a59e27fecf4f2ebbc0f7d35f40d55f029 (diff) | |
download | FreeBSD-src-483438c0a85530a486241abb40b9af781dd73ccc.zip FreeBSD-src-483438c0a85530a486241abb40b9af781dd73ccc.tar.gz |
A fix from Justin for the NCR bug that caused panics on 875 (and possibly
other) chips.
The script pointer was getting set to NULL instead of the right value.
Submitted by: gibbs
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/ncr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index 495e4fb..1bb445c 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: ncr.c,v 1.131 1998/09/20 22:54:28 ken Exp $ +** $Id: ncr.c,v 1.132 1998/09/22 04:56:08 gibbs Exp $ ** ** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family. ** @@ -1357,7 +1357,7 @@ static void ncr_attach (pcici_t tag, int unit); static char ident[] = - "\n$Id: ncr.c,v 1.131 1998/09/20 22:54:28 ken Exp $\n"; + "\n$Id: ncr.c,v 1.132 1998/09/22 04:56:08 gibbs Exp $\n"; static const u_long ncr_version = NCR_VERSION * 11 + (u_long) sizeof (struct ncb) * 7 @@ -3661,7 +3661,7 @@ ncr_attach (pcici_t config_id, int unit) ** Allocate structure for script relocation. */ if (np->vaddr2 != NULL) { - np->script = NULL; + np->script = (struct script *) np->vaddr2; np->p_script = np->paddr2; } else if (sizeof (struct script) > PAGE_SIZE) { np->script = (struct script*) vm_page_alloc_contig |