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/bca64c15673d
branches: trunk
changeset: 375191:bca64c15673d
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 19f6444b20f5 -r bca64c15673d 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 @@ usbwifi_tx_prio_start(struct usbwifi *uw
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