Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Null a pointer on error return.
details: https://anonhg.NetBSD.org/src/rev/54f5c2e9d532
branches: trunk
changeset: 512060:54f5c2e9d532
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Jul 04 16:23:40 2001 +0000
description:
Null a pointer on error return.
diffstat:
sys/dev/usb/usbdi_util.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 5bee317f53f1 -r 54f5c2e9d532 sys/dev/usb/usbdi_util.c
--- a/sys/dev/usb/usbdi_util.c Wed Jul 04 15:01:08 2001 +0000
+++ b/sys/dev/usb/usbdi_util.c Wed Jul 04 16:23:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi_util.c,v 1.33 2000/06/01 15:51:27 augustss Exp $ */
+/* $NetBSD: usbdi_util.c,v 1.34 2001/07/04 16:23:40 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi_util.c,v 1.14 1999/11/17 22:33:50 n_hibma Exp $ */
/*
@@ -405,6 +405,7 @@
*sizep, *descp);
if (err) {
free(*descp, mem);
+ *descp = NULL;
return (err);
}
return (USBD_NORMAL_COMPLETION);
Home |
Main Index |
Thread Index |
Old Index