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/b9f007a2c20b
branches:  trunk
changeset: 939448:b9f007a2c20b
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 be77dacb8b7f -r b9f007a2c20b 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
@@ -2984,7 +2984,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