Fix for kern/12114 and kern/12158 Advansys DMA errors.

Reported by Bob Bernstein who heard from Kenneth Westerback that this
might be the problem.  Tested by HP.
This commit is contained in:
hpeyerl 2001-02-11 23:40:03 +00:00
parent 35483d9169
commit 2dcf59c673
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: adw.c,v 1.26 2000/11/14 18:21:00 thorpej Exp $ */
/* $NetBSD: adw.c,v 1.27 2001/02/11 23:40:03 hpeyerl Exp $ */
/*
* Generic driver for the Advanced Systems Inc. SCSI controllers
@ -871,7 +871,7 @@ adw_build_sglist(ccb, scsiqp, sg_block)
if (--sg_elem_cnt == 0) {
/* last entry, get out */
sg_block->sg_cnt = i + i;
sg_block->sg_cnt = i + 1;
sg_block->sg_ptr = NULL; /* next link = NULL */
return;
}