Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sbus twiddle isp_xflist calculation to match more cl...



details:   https://anonhg.NetBSD.org/src/rev/72fede13f842
branches:  trunk
changeset: 512122:72fede13f842
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Fri Jul 06 16:09:38 2001 +0000

description:
twiddle isp_xflist calculation to match more closes isp_pci.c

diffstat:

 sys/dev/sbus/isp_sbus.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 99718f77983f -r 72fede13f842 sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c   Fri Jul 06 15:59:23 2001 +0000
+++ b/sys/dev/sbus/isp_sbus.c   Fri Jul 06 16:09:38 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.43 2001/04/12 21:40:56 mjacob Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.44 2001/07/06 16:09:38 mjacob Exp $ */
 /*
  * This driver, which is contained in NetBSD in the files:
  *
@@ -339,7 +339,7 @@
        if (isp->isp_rquest_dma)
                return (0);
 
-       n = sizeof (XS_T **) * isp->isp_maxcmds;
+       n = isp->isp_maxcmds * sizeof (XS_T *);
        isp->isp_xflist = (XS_T **) malloc(n, M_DEVBUF, M_WAITOK);
        if (isp->isp_xflist == NULL) {
                isp_prt(isp, ISP_LOGERR, "cannot alloc xflist array");



Home | Main Index | Thread Index | Old Index