Module Name:    src
Committed By:   tsutsui
Date:           Wed May 13 13:12:06 UTC 2009

Modified Files:
        src/sys/dev/ic: i82596.c

Log Message:
Pass correct size (after padding) to bus_dmamap_sync(9) for RX mbufs
in iee_intr().  Fixes panic on DIAGNOSTIC kernel reported by sk...@.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/ic/i82596.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/i82596.c
diff -u src/sys/dev/ic/i82596.c:1.26 src/sys/dev/ic/i82596.c:1.27
--- src/sys/dev/ic/i82596.c:1.26	Sun May 10 04:36:58 2009
+++ src/sys/dev/ic/i82596.c	Wed May 13 13:12:06 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: i82596.c,v 1.26 2009/05/10 04:36:58 tsutsui Exp $ */
+/* $NetBSD: i82596.c,v 1.27 2009/05/13 13:12:06 tsutsui Exp $ */
 
 /*
  * Copyright (c) 2003 Jochen Kunz.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82596.c,v 1.26 2009/05/10 04:36:58 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82596.c,v 1.27 2009/05/13 13:12:06 tsutsui Exp $");
 
 /* autoconfig and device stuff */
 #include <sys/param.h>
@@ -255,7 +255,7 @@
 			sc->sc_rx_done = (sc->sc_rx_done + 1) % IEE_NRFD;
 			continue;
 		}
-		bus_dmamap_sync(sc->sc_dmat, rx_map, 0, rx_mbuf->m_ext.ext_size,
+		bus_dmamap_sync(sc->sc_dmat, rx_map, 0, rx_map->dm_mapsize,
 		    BUS_DMASYNC_POSTREAD);
 		rx_mbuf->m_pkthdr.len = rx_mbuf->m_len =
 		    count & IEE_RBD_COUNT;

Reply via email to