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/e4832f7cded8
branches: trunk
changeset: 371617:e4832f7cded8
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 843b2446d63c -r e4832f7cded8 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