cvs commit: src/sys/dev/de if_de.c

Pyun YongHyeon yongari at FreeBSD.org
Thu Jun 7 00:28:49 UTC 2007


yongari     2007-06-07 00:28:48 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/de           if_de.c 
  Log:
  The maxsegsz of a dma tag created in de(4) is TULIP_DATA_PER_DESC bytes.
  In Rx path it allocates a new mbuf with m_getcl(9) so the length of
  the mbuf is MCLBYTES which is greater than a segment size specified by
  the dma tag. This segment size mismatch caused a voluntary panic.
  Fix the panic by settting the mbuf length to TULIP_DATA_PER_DESC.
  
  Reported by:    Arne H Juul <arnej AT yahoo-inc DOT com>
  Tested by:      Arne H Juul <arnej AT yahoo-inc DOT com>
  
  Revision  Changes    Path
  1.183     +1 -1      src/sys/dev/de/if_de.c


More information about the cvs-all mailing list