diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-08-07 18:57:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-08-07 18:57:01 +0000 |
commit | 6d5bb3c18125188e32ccc9d193f4a6895a2380bb (patch) | |
tree | 0d37296a76f9315ccc93167487695bd6a5b00f71 /sys/dev | |
parent | 29c08835223e98a30c017c154dc5b2f87b75f4ba (diff) |
fix the stupidest alloc/free piece of code ever; nate@ ok
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/ohci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 621c0da06f5..0dd75bbc0a6 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.30 2002/07/09 18:19:58 nate Exp $ */ +/* $OpenBSD: ohci.c,v 1.31 2002/08/07 18:57:00 mickey Exp $ */ /* $NetBSD: ohci.c,v 1.104 2001/09/28 23:57:21 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -1920,10 +1920,8 @@ ohci_open(usbd_pipe_handle pipe) opipe->sed = sed; if (xfertype == UE_ISOCHRONOUS) { sitd = ohci_alloc_sitd(sc); - if (sitd == NULL) { - ohci_free_sitd(sc, sitd); + if (sitd == NULL) goto bad1; - } opipe->tail.itd = sitd; tdphys = sitd->physaddr; fmt = OHCI_ED_FORMAT_ISO; |