Module Name:    src
Committed By:   martin
Date:           Sun Aug  4 11:40:11 UTC 2019

Modified Files:
        src/sys/net [netbsd-9]: raw_usrreq.c

Log Message:
Pull up following revision(s) (requested by ozaki-r in ticket #7):

        sys/net/raw_usrreq.c: revision 1.63
        sys/net/raw_usrreq.c: revision 1.64

Fix typo (s/m_free/m_freem/)
This fixes PR kern/54419 "mbuf leak when deleting route" from sc dying.

 -

Fix typo (s/m_free/m_freem/) (one more)


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.62.4.1 src/sys/net/raw_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/raw_usrreq.c
diff -u src/sys/net/raw_usrreq.c:1.62 src/sys/net/raw_usrreq.c:1.62.4.1
--- src/sys/net/raw_usrreq.c:1.62	Fri Sep  7 06:13:14 2018
+++ src/sys/net/raw_usrreq.c	Sun Aug  4 11:40:11 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: raw_usrreq.c,v 1.62 2018/09/07 06:13:14 maxv Exp $	*/
+/*	$NetBSD: raw_usrreq.c,v 1.62.4.1 2019/08/04 11:40:11 martin Exp $	*/
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_usrreq.c,v 1.62 2018/09/07 06:13:14 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_usrreq.c,v 1.62.4.1 2019/08/04 11:40:11 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/mbuf.h>
@@ -110,12 +110,12 @@ raw_input(struct mbuf *m0, struct sockpr
 	}
 	if (last != NULL) {
 		if (sbappendaddr(&last->so_rcv, src, m, NULL) == 0) {
-			m_free(m);
+			m_freem(m);
 			soroverflow(last);
 		} else
 			sorwakeup(last);
 	} else {
-		m_free(m);
+		m_freem(m);
 	}
 }
 

Reply via email to