Bring in some fixes from NetBSD:
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 29 Apr 2006 22:05:21 +0000 (22:05 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 29 Apr 2006 22:05:21 +0000 (22:05 +0000)
commit6000a600c26d1a35f2c9c6d4eb01a260482b8f10
tree60fa3bbd40ab92859deabaffa3e7813448b3eb61
parent0bc71d4d6bd2400b5b299d0c1d330261cd843bd0
Bring in some fixes from NetBSD:

- Avoid NULL pointer dereference (ehci.c)
- Abort quickly if we don't have a buffer in all the cases. (uhci.c)
- Only do the software reset if we are dying, like we do in ohci and
  ehci (uhci.c)

Submitted-by: Gary <gary@velocity-servers.net>
Taken-from: NetBSD
sys/bus/usb/ehci.c
sys/bus/usb/ohci.c
sys/bus/usb/uhci.c