Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb don't subtract uninitialized pktsize in error path.
details: https://anonhg.NetBSD.org/src/rev/5a95fad37a40
branches: trunk
changeset: 355208:5a95fad37a40
user: christos <christos%NetBSD.org@localhost>
date: Tue Jul 18 23:11:01 2017 +0000
description:
don't subtract uninitialized pktsize in error path.
diffstat:
sys/dev/usb/ualea.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a83668c7b5a3 -r 5a95fad37a40 sys/dev/usb/ualea.c
--- a/sys/dev/usb/ualea.c Tue Jul 18 23:07:20 2017 +0000
+++ b/sys/dev/usb/ualea.c Tue Jul 18 23:11:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ualea.c,v 1.7 2017/07/15 05:46:09 riastradh Exp $ */
+/* $NetBSD: ualea.c,v 1.8 2017/07/18 23:11:01 christos Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ualea.c,v 1.7 2017/07/15 05:46:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ualea.c,v 1.8 2017/07/18 23:11:01 christos Exp $");
#include <sys/types.h>
#include <sys/atomic.h>
@@ -248,7 +248,7 @@
/* Check the transfer status. */
if (status) {
aprint_error_dev(sc->sc_dev, "xfer failed: %d\n", status);
- goto out;
+ return;
}
/* Get and sanity-check the transferred size. */
Home |
Main Index |
Thread Index |
Old Index