Module Name:    src
Committed By:   msaitoh
Date:           Tue Dec 19 06:40:22 UTC 2017

Modified Files:
        src/sys/dev/usb: uhso.c

Log Message:
 Add missing if_free() in the detach path.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/usb/uhso.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/dev/usb/uhso.c
diff -u src/sys/dev/usb/uhso.c:1.25 src/sys/dev/usb/uhso.c:1.26
--- src/sys/dev/usb/uhso.c:1.25	Wed Jan 11 22:09:38 2017
+++ src/sys/dev/usb/uhso.c	Tue Dec 19 06:40:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: uhso.c,v 1.25 2017/01/11 22:09:38 maya Exp $	*/
+/*	$NetBSD: uhso.c,v 1.26 2017/12/19 06:40:22 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2009 Iain Hibbert
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.25 2017/01/11 22:09:38 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.26 2017/12/19 06:40:22 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1993,6 +1993,7 @@ uhso_ifnet_detach(struct uhso_port *hp)
 	s = splnet();
 	bpf_detach(ifp);
 	if_detach(ifp);
+	if_free(ifp);
 	splx(s);
 
 	kmem_free(hp, sizeof(struct uhso_port));

Reply via email to