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;
        }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to