Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Don't leak sqtds in ehci_free_sqtds
details: https://anonhg.NetBSD.org/src/rev/2c50389033e4
branches: nick-nhusb
changeset: 334362:2c50389033e4
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Jan 05 05:53:38 2016 +0000
description:
Don't leak sqtds in ehci_free_sqtds
diffstat:
sys/dev/usb/ehci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 562061b43918 -r 2c50389033e4 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Sun Jan 03 08:30:37 2016 +0000
+++ b/sys/dev/usb/ehci.c Tue Jan 05 05:53:38 2016 +0000
@@ -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 @@
break;
sqtd->nextqtd = sc->sc_freeqtds;
- sc->sc_freeqtds = sqtd->nextqtd;
+ sc->sc_freeqtds = sqtd;
}
mutex_exit(&sc->sc_lock);
}
Home |
Main Index |
Thread Index |
Old Index