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/f02ee516a91f
branches:  trunk
changeset: 366089:f02ee516a91f
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 c8b909bad980 -r f02ee516a91f 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