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/d84c84e7e19d
branches: trunk
changeset: 365078:d84c84e7e19d
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 a313305fde7d -r d84c84e7e19d 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