summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-04-02 14:16:06 +0000
committerjoe <joe@FreeBSD.org>2002-04-02 14:16:06 +0000
commita95eca886e65133dcabd3139d26f00cf3c81a0d0 (patch)
treec0dd3259aeeb36d1b33ab2768e9210600ce6df0a /sys/dev/usb/usb_subr.c
parent58c7211f230a221bb4f6408cbb67f37f13a24537 (diff)
downloadFreeBSD-src-a95eca886e65133dcabd3139d26f00cf3c81a0d0.zip
FreeBSD-src-a95eca886e65133dcabd3139d26f00cf3c81a0d0.tar.gz
MFNetBSD:
revision 1.89 date: 2001/11/10 17:10:42; author: augustss; state: Exp; lines: +2 -1 Abort any xfers on the control pipe before closing it on detach.
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 73eb908..5078c0c 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.88 2001/11/10 16:53:32 augustss Exp $ */
+/* $NetBSD: usb_subr.c,v 1.89 2001/11/10 17:10:42 augustss Exp $ */
/* $FreeBSD$ */
/*
@@ -743,6 +743,7 @@ usbd_setup_pipe(usbd_device_handle dev, usbd_interface_handle iface,
void
usbd_kill_pipe(usbd_pipe_handle pipe)
{
+ usbd_abort_pipe(pipe);
pipe->methods->close(pipe);
pipe->endpoint->refcnt--;
free(pipe, M_USB);
OpenPOWER on IntegriCloud