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); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"