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/453121e23dde
branches:  trunk
changeset: 370582:453121e23dde
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 82f5334d6a3d -r 453121e23dde 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