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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user