Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Need to usbd_destroy_xfer the interrupt xfe...



details:   https://anonhg.NetBSD.org/src/rev/7e36479f1e30
branches:  nick-nhusb
changeset: 334343:7e36479f1e30
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 21 15:26:40 2015 +0000

description:
Need to usbd_destroy_xfer the interrupt xfer that is automatically
provided using usbd_create_xfer

diffstat:

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

diffs (27 lines):

diff -r bbad1669c77c -r 7e36479f1e30 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Mon Dec 21 15:18:41 2015 +0000
+++ b/sys/dev/usb/usbdi.c       Mon Dec 21 15:26:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.162.2.37 2015/12/21 15:18:41 skrll Exp $   */
+/*     $NetBSD: usbdi.c,v 1.162.2.38 2015/12/21 15:26:40 skrll Exp $   */
 
 /*
  * Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.37 2015/12/21 15:18:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.38 2015/12/21 15:26:40 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -255,7 +255,7 @@
        pipe->up_methods->upm_close(pipe);
        usbd_unlock_pipe(pipe);
        if (pipe->up_intrxfer != NULL)
-               usbd_free_xfer(pipe->up_intrxfer);
+               usbd_destroy_xfer(pipe->up_intrxfer);
        kmem_free(pipe, pipe->up_dev->ud_bus->ub_pipesize);
        return USBD_NORMAL_COMPLETION;
 }



Home | Main Index | Thread Index | Old Index