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/b51af9f4b12c
branches:  trunk
changeset: 376724:b51af9f4b12c
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 b54f3e65edb4 -r b51af9f4b12c 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 @@ urtwn_rxeof(struct usbd_xfer *xfer, void
            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