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)
This commit is contained in:
martin 2019-08-04 11:40:11 +00:00
parent 99557bbaf6
commit da23d2a9e5
1 changed files with 4 additions and 4 deletions

View File

@ -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 sockproto *proto, struct sockaddr *src,
}
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);
}
}