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/6e2e592e6f1c
branches:  trunk
changeset: 935705:6e2e592e6f1c
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 2c717c91d945 -r 6e2e592e6f1c 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