Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2009 05:21:00 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r195182 - head/sys/net
Message-ID:  <200906300521.n5U5L062068999@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue Jun 30 05:21:00 2009
New Revision: 195182
URL: http://svn.freebsd.org/changeset/base/195182

Log:
  In case we cannot queue a packet reaching the queue limit, retain the
  semantics netisr_queue() always had and free the mbuf along with
  returning the error.
  
  Reviewed by:	rwatson
  Approved by:	re (kensmith)

Modified:
  head/sys/net/netisr.c

Modified: head/sys/net/netisr.c
==============================================================================
--- head/sys/net/netisr.c	Tue Jun 30 03:18:51 2009	(r195181)
+++ head/sys/net/netisr.c	Tue Jun 30 05:21:00 2009	(r195182)
@@ -803,6 +803,7 @@ netisr_queue_workstream(struct netisr_wo
 		npwp->nw_queued++;
 		return (0);
 	} else {
+		m_freem(m);
 		npwp->nw_qdrops++;
 		return (ENOBUFS);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906300521.n5U5L062068999>