Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/dev/ic Pull up revision 1.12 (requested by bouyer in ...



details:   https://anonhg.NetBSD.org/src/rev/582e16d150c9
branches:  netbsd-3
changeset: 576313:582e16d150c9
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 21 21:28:30 2005 +0000

description:
Pull up revision 1.12 (requested by bouyer in ticket #484):
Pad small packets with a static buffer at the end of the S/G list.
Avoids leaking kernel memory when small packets are transmitted.
Tested on a ibook G4.

diffstat:

 sys/dev/ic/gemvar.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 8c80e87a5b45 -r 582e16d150c9 sys/dev/ic/gemvar.h
--- a/sys/dev/ic/gemvar.h       Tue Jun 21 21:23:50 2005 +0000
+++ b/sys/dev/ic/gemvar.h       Tue Jun 21 21:28:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gemvar.h,v 1.11 2005/02/04 02:10:36 perry Exp $ */
+/*     $NetBSD: gemvar.h,v 1.11.4.1 2005/06/21 21:28:30 tron Exp $ */
 
 /*
  *
@@ -150,6 +150,8 @@
        bus_dmamap_t sc_cddmamap;       /* control data DMA map */
 #define        sc_cddma        sc_cddmamap->dm_segs[0].ds_addr
 
+       bus_dmamap_t sc_nulldmamap;     /* for small packets padding */
+
        /*
         * Software state for transmit and receive descriptors.
         */



Home | Main Index | Thread Index | Old Index