Source-Changes-HG archive

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

[src/trunk]: src/sys/net Add missing percpu_putref to error path



details:   https://anonhg.NetBSD.org/src/rev/b6cf01878443
branches:  trunk
changeset: 343960:b6cf01878443
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Mar 07 01:41:55 2016 +0000

description:
Add missing percpu_putref to error path

diffstat:

 sys/net/if.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r bcb0de8a41ef -r b6cf01878443 sys/net/if.c
--- a/sys/net/if.c      Mon Mar 07 00:51:32 2016 +0000
+++ b/sys/net/if.c      Mon Mar 07 01:41:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.325 2016/02/19 20:05:43 roy Exp $     */
+/*     $NetBSD: if.c,v 1.326 2016/03/07 01:41:55 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.325 2016/02/19 20:05:43 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.326 2016/03/07 01:41:55 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -770,6 +770,7 @@
        ifq = percpu_getref(ipq->ipq_ifqs);
        if (IF_QFULL(ifq)) {
                IF_DROP(ifq);
+               percpu_putref(ipq->ipq_ifqs);
                m_freem(m);
                goto out;
        }



Home | Main Index | Thread Index | Old Index