diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2012-02-23 05:14:11 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2012-02-23 05:14:11 +0000 |
commit | 0f881e21e5b038865a917458552bd1b76fa644b5 (patch) | |
tree | 75cb6157dcdb83197f801d229eb8d22d60e69bfc /sys/dev/sf | |
parent | 911dd7324dc2817838b304d8680987dc3548c20c (diff) | |
download | src-0f881e21e5b038865a917458552bd1b76fa644b5.tar.gz src-0f881e21e5b038865a917458552bd1b76fa644b5.zip |
If there are not enough RX buffers, release partially allocated RX
buffers.
Notes
Notes:
svn path=/head/; revision=232021
Diffstat (limited to 'sys/dev/sf')
-rw-r--r-- | sys/dev/sf/if_sf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 6a8b49fc53c4..952ed7dd3b18 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -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; } |