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 Initialize prod and count.



details:   https://anonhg.NetBSD.org/src-all/rev/f4727f1348e9
branches:  trunk
changeset: 369376:f4727f1348e9
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Fri Apr 08 14:22:04 2022 +1000

description:
Initialize prod and count.

diffstat:

 sys/dev/usb/usbwifi.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 332d8c3b1c2a -r f4727f1348e9 sys/dev/usb/usbwifi.c
--- a/sys/dev/usb/usbwifi.c     Fri Apr 08 14:20:40 2022 +1000
+++ b/sys/dev/usb/usbwifi.c     Fri Apr 08 14:22:04 2022 +1000
@@ -609,6 +609,8 @@
                                c->uwc_buf = usbd_get_buffer(c->uwc_xfer);
                        }
                }
+               cd->uwcd_tx_chains[i].uwscd_tx_prod =
+                   cd->uwcd_tx_chains[i].uwscd_tx_cnt = 0;
        }
 
        KASSERTMSG((char*)chain - (char*)cd->uwcd_tx_chains ==



Home | Main Index | Thread Index | Old Index