Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb cache the pipe before the container is put in th...
details: https://anonhg.NetBSD.org/src/rev/406f73779386
branches: trunk
changeset: 784680:406f73779386
user: christos <christos%NetBSD.org@localhost>
date: Tue Feb 05 18:15:04 2013 +0000
description:
cache the pipe before the container is put in the free list (and can change)
diffstat:
sys/dev/usb/if_urtwn.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 6b46050a08a8 -r 406f73779386 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Tue Feb 05 17:52:22 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c Tue Feb 05 18:15:04 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.19 2013/01/28 23:46:33 christos Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.20 2013/02/05 18:15:04 christos Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.19 2013/01/28 23:46:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.20 2013/02/05 18:15:04 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2117,6 +2117,7 @@
struct urtwn_tx_data *data = priv;
struct urtwn_softc *sc = data->sc;
struct ifnet *ifp = &sc->sc_if;
+ usbd_pipe_handle pipe = data->pipe;
int s;
DPRINTFN(DBG_FN|DBG_TX, ("%s: %s: status=%d\n",
@@ -2135,7 +2136,7 @@
if (__predict_false(status != USBD_NORMAL_COMPLETION)) {
if (status != USBD_NOT_STARTED && status != USBD_CANCELLED) {
if (status == USBD_STALLED)
- usbd_clear_endpoint_stall_async(data->pipe);
+ usbd_clear_endpoint_stall_async(pipe);
ifp->if_oerrors++;
}
splx(s);
Home |
Main Index |
Thread Index |
Old Index