Properly unwind from a failure in usbd_dma_contig_alloc(). Calling
authorkettenis <kettenis@openbsd.org>
Fri, 9 Jan 2015 20:17:05 +0000 (20:17 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 9 Jan 2015 20:17:05 +0000 (20:17 +0000)
commit6d7eae8c4a4415d6da3000487bb67e2dee44e110
treee0dda6e3b18b7dce08f71a23c28dcb174f28a9c1
parent144d17a9a0e836a63c7b0e29d5a9e01dc1cd03a0
Properly unwind from a failure in usbd_dma_contig_alloc().  Calling
bus_dmamap_unload(9) on a map that failed to load is a bad idea and causes
panics on some architectures (such as sparc64).

ok mpi@
sys/dev/usb/xhci.c