Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix a case where an uninitialized USB pipe could...
details: https://anonhg.NetBSD.org/src/rev/abf5ad440a04
branches: trunk
changeset: 779706:abf5ad440a04
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jun 12 20:25:58 2012 +0000
description:
Fix a case where an uninitialized USB pipe could be freed in the error
path.
diffstat:
sys/dev/usb/stuirda.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7ecfb39015eb -r abf5ad440a04 sys/dev/usb/stuirda.c
--- a/sys/dev/usb/stuirda.c Tue Jun 12 19:21:50 2012 +0000
+++ b/sys/dev/usb/stuirda.c Tue Jun 12 20:25:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stuirda.c,v 1.14 2012/03/06 03:35:29 mrg Exp $ */
+/* $NetBSD: stuirda.c,v 1.15 2012/06/12 20:25:58 joerg Exp $ */
/*
* Copyright (c) 2001,2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: stuirda.c,v 1.14 2012/03/06 03:35:29 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: stuirda.c,v 1.15 2012/06/12 20:25:58 joerg Exp $");
#include <sys/param.h>
@@ -220,7 +220,7 @@
if (rc) {
printf("%s: Cannot switch to f/w d/l mode, error %d\n",
device_xname(sc->sc_dev), rc);
- goto giveup4;
+ goto giveup3;
}
delay(100000);
Home |
Main Index |
Thread Index |
Old Index