Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Abort any xfers on the control pipe before closi...



details:   https://anonhg.NetBSD.org/src/rev/121a24a5b596
branches:  trunk
changeset: 517321:121a24a5b596
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Nov 10 17:10:42 2001 +0000

description:
Abort any xfers on the control pipe before closing it on detach.

diffstat:

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

diffs (17 lines):

diff -r 42769c0369ad -r 121a24a5b596 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Sat Nov 10 17:09:28 2001 +0000
+++ b/sys/dev/usb/usb_subr.c    Sat Nov 10 17:10:42 2001 +0000
@@ -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: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -744,6 +744,7 @@
 void
 usbd_kill_pipe(usbd_pipe_handle pipe)
 {
+       usbd_abort_pipe(pipe);
        pipe->methods->close(pipe);
        pipe->endpoint->refcnt--;
        free(pipe, M_USB);



Home | Main Index | Thread Index | Old Index