Module Name:    src
Committed By:   skrll
Date:           Tue Jan  5 05:53:38 UTC 2016

Modified Files:
        src/sys/dev/usb [nick-nhusb]: ehci.c

Log Message:
Don't leak sqtds in ehci_free_sqtds


To generate a diff of this commit:
cvs rdiff -u -r1.234.2.75 -r1.234.2.76 src/sys/dev/usb/ehci.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/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.234.2.75 src/sys/dev/usb/ehci.c:1.234.2.76
--- src/sys/dev/usb/ehci.c:1.234.2.75	Sun Jan  3 08:30:37 2016
+++ src/sys/dev/usb/ehci.c	Tue Jan  5 05:53:38 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ehci.c,v 1.234.2.75 2016/01/03 08:30:37 skrll Exp $ */
+/*	$NetBSD: ehci.c,v 1.234.2.76 2016/01/05 05:53:38 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.75 2016/01/03 08:30:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.76 2016/01/05 05:53:38 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -2961,7 +2961,7 @@ ehci_free_sqtds(ehci_softc_t *sc, struct
 			break;
 
 		sqtd->nextqtd = sc->sc_freeqtds;
-		sc->sc_freeqtds = sqtd->nextqtd;
+		sc->sc_freeqtds = sqtd;
 	}
 	mutex_exit(&sc->sc_lock);
 }

Reply via email to