Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci m_free -> m_freem, otherwise leak



details:   https://anonhg.NetBSD.org/src/rev/454b14fcbca5
branches:  trunk
changeset: 359484:454b14fcbca5
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Feb 12 17:01:22 2018 +0000

description:
m_free -> m_freem, otherwise leak

diffstat:

 sys/arch/x86/pci/if_vmx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e9d783805172 -r 454b14fcbca5 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Mon Feb 12 16:58:01 2018 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Mon Feb 12 17:01:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.20 2017/09/26 07:42:05 knakahara Exp $    */
+/*     $NetBSD: if_vmx.c,v 1.21 2018/02/12 17:01:22 maxv Exp $ */
 /*     $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $        */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.20 2017/09/26 07:42:05 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.21 2018/02/12 17:01:22 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -2527,7 +2527,7 @@
                offset = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN;
                break;
        default:
-               m_free(m);
+               m_freem(m);
                return (EINVAL);
        }
 



Home | Main Index | Thread Index | Old Index