Check the allocation of the endpoint pipe object.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27457 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-09-12 17:10:35 +00:00
parent 11b9aad7f7
commit 5565f43e07
@@ -467,6 +467,13 @@ Device::InitEndpoints(int32 interfaceIndex)
break;
}
if (pipe == NULL) {
TRACE_ERROR(("USB Device %d: failed to allocate pipe\n",
fDeviceAddress));
endpoint->handle = 0;
continue;
}
pipe->InitCommon(fDeviceAddress,
endpoint->descr->endpoint_address & 0x0f,
fSpeed, direction, endpoint->descr->max_packet_size,