Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Put back correct recieve ring allocation size wh...



details:   https://anonhg.NetBSD.org/src/rev/02fa057908dc
branches:  trunk
changeset: 999925:02fa057908dc
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Jun 24 13:57:30 2019 +0000

description:
Put back correct recieve ring allocation size which was lost just over
five years ago mae culpa.

Found by msaitoh@

Should fix PR kern/54320 once pulled up.

diffstat:

 sys/dev/pci/if_wpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cf53abcd1b6b -r 02fa057908dc sys/dev/pci/if_wpi.c
--- a/sys/dev/pci/if_wpi.c      Mon Jun 24 13:36:07 2019 +0000
+++ b/sys/dev/pci/if_wpi.c      Mon Jun 24 13:57:30 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wpi.c,v 1.85 2018/12/22 14:07:53 maxv Exp $ */
+/*     $NetBSD: if_wpi.c,v 1.86 2019/06/24 13:57:30 jakllsch Exp $     */
 
 /*-
  * Copyright (c) 2006, 2007
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.85 2018/12/22 14:07:53 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.86 2019/06/24 13:57:30 jakllsch Exp $");
 
 /*
  * Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters.
@@ -671,7 +671,7 @@
 
        ring->cur = 0;
 
-       size = WPI_RX_RING_COUNT * sizeof (uint32_t);
+       size = WPI_RX_RING_COUNT * sizeof (struct wpi_rx_desc);
        error = wpi_dma_contig_alloc(sc->sc_dmat, &ring->desc_dma,
            (void **)&ring->desc, size,
            WPI_RING_DMA_ALIGN, BUS_DMA_NOWAIT);



Home | Main Index | Thread Index | Old Index