don't return unitialised memory on error in ehci_alloc_sqtd()
authorjsg <jsg@openbsd.org>
Sun, 3 Aug 2014 14:30:28 +0000 (14:30 +0000)
committerjsg <jsg@openbsd.org>
Sun, 3 Aug 2014 14:30:28 +0000 (14:30 +0000)
commit2892b218eb7573dc71aef2dceef1dcd1e4ff3d17
treeb2e581817bd218a8ee90022b20a6a5cb8c07c0bd
parenta391041c7ff420c85b16b0f8e25b8a97bedda722
don't return unitialised memory on error in ehci_alloc_sqtd()

It seems mpi introduced a problem into ehci.c rev 1.162
two weeks ago.  An error check that used to return NULL
now jumps to the end of the function, but sqtd isn't
initialised at that point.

ok miod@ deraadt@
sys/dev/usb/ehci.c