Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/usb Check if device has stopped so not to sche...
details: https://anonhg.NetBSD.org/src-all/rev/61ab932b5a1a
branches: trunk
changeset: 371094:61ab932b5a1a
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Fri Jan 07 00:53:56 2022 +1100
description:
Check if device has stopped so not to schedule more transfers.
diffstat:
sys/dev/usb/usbwifi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 16f524acd545 -r 61ab932b5a1a sys/dev/usb/usbwifi.c
--- a/sys/dev/usb/usbwifi.c Fri Jan 07 00:52:46 2022 +1100
+++ b/sys/dev/usb/usbwifi.c Fri Jan 07 00:53:56 2022 +1100
@@ -794,6 +794,9 @@
uwp->uwp_number, s_chain->uwscd_tx_cnt, uw->uw_tx_list_cnt, 0);
while (s_chain->uwscd_tx_cnt < uw->uw_tx_list_cnt) {
+ if (uwp->uwp_dying || uwp->uwp_stopping)
+ break;
+
IFQ_POLL(&uwp->uwp_sendq[prio], m);
if (m == NULL)
break;
Home |
Main Index |
Thread Index |
Old Index