* Forgot to allocate the dma_resource before using it. Now scsi_cd works again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -939,6 +939,12 @@ cd_init_driver(device_node *node, void **cookie)
|
||||
|
||||
memset(info, 0, sizeof(*info));
|
||||
|
||||
info->dma_resource = new(std::nothrow) DMAResource;
|
||||
if (info->dma_resource == NULL) {
|
||||
free(info);
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
info->node = node;
|
||||
info->removable = removable;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user