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/296cfe04865b
branches:  trunk
changeset: 941190:296cfe04865b
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 bd3d9fbffb6c -r 296cfe04865b 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