* 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:
Axel Dörfler
2008-08-07 06:41:15 +00:00
parent 3394ebd3c2
commit 72ebbe4244
@@ -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;