From owner-svn-src-all@FreeBSD.ORG Thu Feb 23 05:14:12 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56588106564A; Thu, 23 Feb 2012 05:14:12 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4236E8FC16; Thu, 23 Feb 2012 05:14:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1N5ECJ5085024; Thu, 23 Feb 2012 05:14:12 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1N5ECmK085022; Thu, 23 Feb 2012 05:14:12 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <201202230514.q1N5ECmK085022@svn.freebsd.org> From: Pyun YongHyeon Date: Thu, 23 Feb 2012 05:14:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232021 - head/sys/dev/sf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 05:14:12 -0000 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; }