Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Fix a bug introduced in rev1.154 (...



details:   https://anonhg.NetBSD.org/src/rev/58d8191cda04
branches:  trunk
changeset: 318504:58d8191cda04
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Apr 27 09:02:16 2018 +0000
description:
Fix a bug introduced in rev1.154 (2009). mcl_cache still has a size of
MCLBYTES, so the area allocated is still too small.

I think it should have been MEXTMALLOC, and of course I can't test my
change.

diffstat:

 sys/netinet6/icmp6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a2b091d2357 -r 58d8191cda04 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Fri Apr 27 08:51:26 2018 +0000
+++ b/sys/netinet6/icmp6.c      Fri Apr 27 09:02:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.232 2018/04/26 19:50:09 maxv Exp $ */
+/*     $NetBSD: icmp6.c,v 1.233 2018/04/27 09:02:16 maxv Exp $ */
 /*     $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.232 2018/04/26 19:50:09 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.233 2018/04/27 09:02:16 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2495,7 +2495,7 @@
        MGETHDR(m, M_DONTWAIT, MT_HEADER);
        if (m && IPV6_MMTU >= MHLEN) {
 #if IPV6_MMTU >= MCLBYTES
-               _MCLGET(m, mcl_cache, IPV6_MMTU, M_DONTWAIT);
+               MEXTMALLOC(m, IPV6_MMTU, M_NOWAIT);
 #else
                MCLGET(m, M_DONTWAIT);
 #endif



Home | Main Index | Thread Index | Old Index