Module Name: src
Committed By: skrll
Date: Mon Dec 21 15:26:40 UTC 2015
Modified Files:
src/sys/dev/usb [nick-nhusb]: usbdi.c
Log Message:
Need to usbd_destroy_xfer the interrupt xfer that is automatically
provided using usbd_create_xfer
To generate a diff of this commit:
cvs rdiff -u -r1.162.2.37 -r1.162.2.38 src/sys/dev/usb/usbdi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/usbdi.c
diff -u src/sys/dev/usb/usbdi.c:1.162.2.37 src/sys/dev/usb/usbdi.c:1.162.2.38
--- src/sys/dev/usb/usbdi.c:1.162.2.37 Mon Dec 21 15:18:41 2015
+++ src/sys/dev/usb/usbdi.c Mon Dec 21 15:26:40 2015
@@ -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 @@ usbd_close_pipe(struct usbd_pipe *pipe)
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;
}