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 Double removal error.



details:   https://anonhg.NetBSD.org/src-all/rev/ff6ebe003f0a
branches:  trunk
changeset: 370771:ff6ebe003f0a
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 03 08:38:56 2020 +1000

description:
Double removal error.

diffstat:

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

diffs (11 lines):

diff -r 0b0a506b1337 -r ff6ebe003f0a sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun May 03 07:36:44 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun May 03 08:38:56 2020 +1000
@@ -2990,7 +2990,6 @@
            device_xname(sc->sc_dev), __func__, status));
 
        mutex_enter(&sc->sc_rx_mtx);
-       TAILQ_REMOVE(&sc->rx_free_list[pidx], data, next);
        TAILQ_INSERT_TAIL(&sc->rx_free_list[pidx], data, next);
        /* Put this Rx buffer back to our free list. */
        mutex_exit(&sc->sc_rx_mtx);



Home | Main Index | Thread Index | Old Index