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 Botched error path.



details:   https://anonhg.NetBSD.org/src-all/rev/70ac6cdcd006
branches:  trunk
changeset: 368108:70ac6cdcd006
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sat May 14 23:30:45 2022 +1000

description:
Botched error path.

diffstat:

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

diffs (13 lines):

diff -r ae109972afed -r 70ac6cdcd006 sys/dev/usb/usbwifi.c
--- a/sys/dev/usb/usbwifi.c     Sat May 14 11:31:05 2022 +1000
+++ b/sys/dev/usb/usbwifi.c     Sat May 14 23:30:45 2022 +1000
@@ -851,8 +851,8 @@
                            (uintptr_t)c->uwc_buf, length, err, 0);
                        if (vap != NULL)
                                if_statinc(vap->iv_ifp, if_oerrors);
+                       ieee80211_tx_complete(ni, m, 1);
                        break;
-                       ieee80211_tx_complete(ni, m, 1);
                }
                done_transmit = true;
 



Home | Main Index | Thread Index | Old Index