Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Avoid freeing already free data when attach fails.



details:   https://anonhg.NetBSD.org/src/rev/641a258e3963
branches:  trunk
changeset: 480591:641a258e3963
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sun Jan 16 13:05:48 2000 +0000

description:
Avoid freeing already free data when attach fails.

diffstat:

 sys/dev/usb/uhid.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r e9646dbd3b76 -r 641a258e3963 sys/dev/usb/uhid.c
--- a/sys/dev/usb/uhid.c        Sun Jan 16 12:43:52 2000 +0000
+++ b/sys/dev/usb/uhid.c        Sun Jan 16 13:05:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhid.c,v 1.29 1999/12/18 22:47:11 augustss Exp $       */
+/*     $NetBSD: uhid.c,v 1.30 2000/01/16 13:05:48 augustss Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhid.c,v 1.22 1999/11/17 22:33:43 n_hibma Exp $       */
 
 /*
@@ -218,8 +218,6 @@
        if (err) {
                printf("%s: no report descriptor\n", USBDEVNAME(sc->sc_dev));
                sc->sc_dying = 1;
-               if (desc != NULL)
-                       free(desc, M_USBDEV);
                USB_ATTACH_ERROR_RETURN;
        }
        



Home | Main Index | Thread Index | Old Index