diff options
author | 2008-10-07 11:31:09 +0000 | |
---|---|---|
committer | 2008-10-07 11:31:09 +0000 | |
commit | 0a1d908dcca552fd2f79f634e35eb431a40d8d65 (patch) | |
tree | 4391202e789bd5b657377221bf6815e37d27f356 /sys | |
parent | dump pci devices from all the domains available in the system. this gives (diff) | |
download | wireguard-openbsd-0a1d908dcca552fd2f79f634e35eb431a40d8d65.tar.xz wireguard-openbsd-0a1d908dcca552fd2f79f634e35eb431a40d8d65.zip |
In ehci_free_itd() replace LIST_INSERT_AFTER(LIST_FIRST(..), ..) with
LIST_INSERT_HEAD(..) to prevent a crash when the freelist is empty. From
NetBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ehci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 618ed31d024..d7ae109d0de 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci.c,v 1.93 2008/10/06 20:18:56 mglocker Exp $ */ +/* $OpenBSD: ehci.c,v 1.94 2008/10/07 11:31:09 mglocker Exp $ */ /* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -2675,7 +2675,7 @@ ehci_free_itd(ehci_softc_t *sc, ehci_soft_itd_t *itd) int s; s = splusb(); - LIST_INSERT_AFTER(LIST_FIRST(&sc->sc_freeitds), itd, u.free_list); + LIST_INSERT_HEAD(&sc->sc_freeitds, itd, u.free_list); splx(s); } |