diff options
author | 2018-03-05 11:32:05 +0000 | |
---|---|---|
committer | 2018-03-05 11:32:05 +0000 | |
commit | 692e1a9747b440e8540c5eff1c24d7a0eb320c7c (patch) | |
tree | e34f1345febff60f170774d43961cc72af576e82 /lib/libc/stdlib/malloc.c | |
parent | Fix failure when AS number is < 10 (diff) | |
download | wireguard-openbsd-692e1a9747b440e8540c5eff1c24d7a0eb320c7c.tar.xz wireguard-openbsd-692e1a9747b440e8540c5eff1c24d7a0eb320c7c.zip |
Move completed transfer descriptors to the freelist before calling
usb_transfer_complete, so that if we need to allocate a new one (as in the
case of interrupt endpoints) we will always be able to do so without
allocating a new chunk. Mapping a new chunk involves allocating from the
kernel map, which is not safe to do from interrupt context.
fixes a panic reported by semarie
ok visa@ krw@ (before a last minute tweak)
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions