Subject: CVS commit: src/sys/dev/pci
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 02/15/2007 19:24:47
Module Name:	src
Committed By:	bouyer
Date:		Thu Feb 15 19:24:47 UTC 2007

Modified Files:
	src/sys/dev/pci: if_bnx.c

Log Message:
Fix 2 panics with DIAGNOSTIC kernels:
- remove the code to bring down the PHY in bnx_stop(), it's wrong
  (ifm_data isn't updated) and lead to a panic in mii_phy_setmedia(),
  or reading past the end mii_media_table[].
- make sure the dma_map matches the mbuf in the rx structures. We would
  sync/unload the wrong map, leading to a DIAGNOSTIC panic, or eventually
  leaking memory when bounce buffers are needed.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 src/sys/dev/pci/if_bnx.c

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