svn commit: r232021 - head/sys/dev/sf

Pyun YongHyeon yongari at FreeBSD.org
Thu Feb 23 05:14:12 UTC 2012


Author: yongari
Date: Thu Feb 23 05:14:11 2012
New Revision: 232021
URL: http://svn.freebsd.org/changeset/base/232021

Log:
  If there are not enough RX buffers, release partially allocated RX
  buffers.

Modified:
  head/sys/dev/sf/if_sf.c

Modified: head/sys/dev/sf/if_sf.c
==============================================================================
--- head/sys/dev/sf/if_sf.c	Thu Feb 23 05:13:46 2012	(r232020)
+++ head/sys/dev/sf/if_sf.c	Thu Feb 23 05:14:11 2012	(r232021)
@@ -2010,6 +2010,7 @@ sf_init_locked(struct sf_softc *sc)
 	if (sf_init_rx_ring(sc) == ENOBUFS) {
 		device_printf(sc->sf_dev,
 		    "initialization failed: no memory for rx buffers\n");
+		sf_stop(sc);
 		return;
 	}
 


More information about the svn-src-head mailing list